To distinguish runtime options from program arguments that are passed to Language Environment, the options and program arguments are separated by a slash (/). For more information about program arguments, see Argument lists and parameter lists.
Runtime options usually precede program arguments whenever they are specified in JCL or on application invocation. The possible combinations are described in Table 1. You can override this format to ensure compatibility with COBOL applications. See COBOL compatibility considerations for more information.
When... | Format |
---|---|
Only runtime options are present | runtime options/ |
Only program arguments are present
|
One of the following:
|
Both runtime options and program arguments are present | runtime options/program arguments |
Use the callable service CEE3PRM and CEE3PR2 to retrieve program arguments (for more information, see z/OS Language Environment Programming Reference).
//CEEWLG JOB
//*
//LINKGO EXEC CEEWLG,
// PARM.GO='RPTOPTS(ON),MSGFILE(OPTRPRT)/'
//*
//LKED.SYSIN DD DSN='userid.MYLIB.OBJLIB(MYPROG)',...DISP=SHR
//GO.OPTRPRT DD SYSOUT=A
//*