Previous Topic: Define an Output Array in COBOL ProgramsNext Topic: Call OPSLINK from Assembler Programs


Define the OPSLINK Routine in COBOL Programs

The OPSLINK routine should be defined as follows:

DATA DIVISION.
 77  OPSLINK               PIC X(8) VALUE 'OPSLINK'.
 77  RET-CODE              PIC X(4) VALUE SPACES.

OPSLINK returns a return code in COBOL variable RETCODE. Return codes from OPSLINK and their meaning are explained at the end of this section.