Overriding the default runtime options

In Figure 1, an object module called MYPROG is created and run using the cataloged procedure CEEWLG. The code in the example overrides the Language Environment defaults for the RPTOPTS and MSGFILE runtime options.

Figure 1. Overriding the default runtime options under batch
//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
//*

The trailing slash after the runtime options is required for C, Fortran, PL/I and for COBOL users who have specified the CBLOPTS(OFF) runtime option. For COBOL users who have specified the CBLOPTS(ON) runtime option at installation (see z/OS Language Environment Programming Reference), the slash should go before the runtime options, as in Figure 2.

Figure 2. Overriding the default runtime options for COBOL
⋮
//    PARM.GO='/RPTOPTS(ON),MSGFILE(OPTRPRT)'
⋮