Previous Topic: Define an Output Array in PL/1 ProgramsNext Topic: Call OPSLINK from COBOL Programs


Define the OPSLINK Routine in PL/1 Programs

The OPSLINK routine should be defined as follows:

DCL OPSLINK ENTRY OPTIONS(ASM,INTER,RETCODE);

Before the first call is made to OPSLINK, you must load the subroutine into memory by issuing the FETCH PL/1 instruction, as follows:

FETCH OPSLINK;

After the last call is made to OPSLINK, unload the subroutine from memory by issuing the RELEASE PL/1 instruction, as follows:

RELEASE OPSLINK;

OPSLINK returns a return code in PL/1 variable RETCODE. Return codes from OPSLINK and their meanings are explained at the end of this section.