GDDM V3R2 Base Application Programming Reference
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


COBOL

GDDM V3R2 Base Application Programming Reference
SC33-0868-02



The call format for COBOL is as follows:


     CALL 'callname' USING parameter-1,parameter-2,...parameter-n.

For example,


     MOVE 1 TO ID.
     MOVE 3 TO COLOR.
     CALL 'ASFCOL' USING ID,COLOR.

Parameters must be declared as:

Fullword integer
PICTURE S9(8) COMPUTATIONAL or equivalent
Halfword integer
PICTURE S9(4) COMPUTATIONAL or equivalent
Floating-point
COMPUTATIONAL-1
Character
PICTURE X (n)
Arrays
The OCCURS clause.
Structure
01 structure-name.
COPY mapname.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012