Command examples

The following examples show commands in assembler, COBOL II, PL/I, and C languages:

Assembler language example

MVC SPMODE,=C'INPUT'
 MVC SPFORMAT,=C'STD'
 MVC SPMAXLEN,=F'400'
 CALL OPENPIPE,SPAREA

COBOL I I language example

MOVE 'INPUT' TO SPMODE.
 MOVE 'STD' TO SPFORMAT.
 MOVE 400 TO SPMAXLEN.
 CALL 'OPENPIPE' USING SPAREA.

PL/I language example

SPMODE='INPUT';
 SPFORMAT='STD';
 SPMAXLEN=400;
 CALL OPENPIPE(SPAREA);

C language example

memcpy(spPointer->spmode, “INPUT ”,
 	sizeof(spPointer->spmode));
 memcpy(spPointer->spformat, “STD”,
 	sizeof(spPointer->spformat));
 spPointer->spmaxlen = 400;
 openpipe(spPointer);

NoteAll the other examples in the command explanations in this appendix are in COBOL II.