Top
NetCOBOL V11.0 Getting Started
FUJITSU Software

Appendix A Sample Programs

The sample programs shipped with NetCOBOL are intended to give an overview of the capabilities of NetCOBOL and COBOL Project Manager. Refer to the “NetCOBOL User’s Guide” for further details on using NetCOBOL. The following table details the sample programs available with NetCOBOL.

Table A.1 NetCOBOL Sample Programs

Sample

Purpose of sample

Functions Used

Sample01

Data Processing Using Standard Input-Output

  • ACCEPT/DISPLAY (console window)

  • Debugger

Sample02

Using Line Sequential and Indexed Files

  • Line sequential file (reference)

  • Indexed file (creation

Sample03

Screen Input-Output Operation Using the Presentation File Function

Sample 3 is not available in the English version of NetCOBOL.

Sample04

Screen Input-Output Using the Screen Section

  • Screen handling

  • Indexed file (reference)

Sample05

Calling COBOL Subprograms

  • Inter-program communication

  • Library fetch

  • ACCEPT/DISPLAY (message box)

  • Print file

  • Indexed file (reference)

  • Line sequential file (creation)

  • Passing parameters for execution

  • Free format

Sample06

Receiving a Command Line Argument

  • Fetching command line arguments

  • Internal program

Sample07

Environment Variable Handling

  • Environment variable handling

Sample08

Using a Print File

  • Print file

  • ACCEPT/DISPLAY (console window)

Sample09

Using a Print File (Advanced usage)

  • Print file (changing print form, letter form, and layout)

Sample10

Using a Print File with FORMAT clause

Sample 10 is not available in the English version of NetCOBOL.

Sample11

Remote database access

  • Embedded SQL statements (reference)

Sample12

Remote database access (multiple row processing)

  • Embedded SQL statements (reference, update and delete)

Sample13

Calling COBOL from Visual Basic

  • Visual Basic

  • COBOL subprograms

Sample14

Visual Basic calling COBOL -Simple ATM Example

  • Visual Basic

  • COBOL subprograms

Sample15

Basic Object-Oriented Programming

  • Class definition (encapsulation)

  • object generation

  • method invocation

Sample16

Collection Class (Class Library)

  • Class definition (encapsulation)

  • object generation

  • method invocation

Sample17

Object-Oriented Cobol (Aggregation, Singleton, and Iteration)

  • Using Class Library

  • Multiple inheritance

  • polymorphism

Sample18

Advanced Object-Oriented Programming

  • Using Class Library

  • Multiple inheritance

  • polymorphism

Sample19

Object Persistence (Indexed File)

  • polymorphism

  • Indexed file

Sample20

Object Persistence (Database)

  • polymorphism

  • Remote database access (ODBC)

Sample21

Multithread Programming

  • Multithread programming

  • Index file (creation, reference, update, and rewrite)

  • External data/file

  • Data locking

  • COBOL ISAPI Subroutine

Sample22

Multithread Programming (Advanced usage)

  • Multithread programming

  • COBOL ISAPI Subroutine

  • Event log (output of user definition information)

  • External data/file

  • Data locking

  • Sharing data between threads

Sample23

COM Program to Control Excel (Late Binding)

  • COM Client functions (Late binding)

Sample24

COM Program to Control Excel (Early Binding)

  • COM Client functions (Early binding)

Sample25

Creating a COBOL COM Server Program

  • COM Server functions

  • Remote Database Access

  • *COM-ARRAY class

Sample26

Using the COM Linkage-COBOL Server Program (COBOL Client)

  • Using COBOL COM Server

  • COM Client Functions

  • *COM-ARRAY class

  • Screen handling

Sample27

Using the COM Linkage-COBOL Server Program (ASP Client)

  • Using COBOL COM Server

  • ASP client

Sample28

Transaction Management with COM Linkage-MTS

  • COM Server functions

  • Object context object(MTS)

  • Remote Database Access

  • *COM-ARRAY class

Sample29

Inter-application Communication Function

  • Inter-application communication

Sample30

Using UNICODE

Sample 30 is not available in the English version of NetCOBOL.

Sample31

Windows System Function Call

  • Calling Windows API’s

  • STDCALL calling convention

  • BY VALUE parameters

  • RETURNING phrase of a CALL statement

  • PROGRAM-STATUS special register

Sample32

Starting other programs

  • Calling Windows API’s

  • STDCALL calling convention

  • STORED-CHARACTER-LENGTH function