The following examples show commands in assembler, COBOL II, PL/I, and C languages:
MVC SPMODE,=C'INPUT' MVC SPFORMAT,=C'STD' MVC SPMAXLEN,=F'400' CALL OPENPIPE,SPAREA
MOVE 'INPUT' TO SPMODE. MOVE 'STD' TO SPFORMAT. MOVE 400 TO SPMAXLEN. CALL 'OPENPIPE' USING SPAREA.
SPMODE='INPUT'; SPFORMAT='STD'; SPMAXLEN=400; CALL OPENPIPE(SPAREA);
memcpy(spPointer->spmode, “INPUT ”, sizeof(spPointer->spmode)); memcpy(spPointer->spformat, “STD”, sizeof(spPointer->spformat)); spPointer->spmaxlen = 400; openpipe(spPointer);
All the other examples in the command explanations in
this appendix are in COBOL II.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |