Example of using LOADGO

The following example shows how to:
  • Create an executable program using the object modules PROGRAM1 and CEEUOPT
  • Specify the runtime options to produce the runtime options report (RPTOPTS) and the storage report (RPTSTG)
  • Specify the Language Environment library CEE.SCEELKED as the automatic call library for a non-XPLINK application
  • Generate a mapping of the executable program
  • Direct the loader listing to the terminal
LOADGO ('USER.OBJLIB(PROGRAM1)','USER.OBJLIB(CEEUOPT)')
       'RPTOPTS(ON),RPTSTG(ON)/'
        LIB ('CEE.SCEELKED') MAP PRINT(*)

To run an application successfully under TSO/E, the SCEERUN dynamic library must be either in the link-list concatenation, or in a STEPLIB in the TSO/E logon procedure. As an alternative, the MVS/TSO Dynamic STEPLIB Facility (Program Offering 5798-DZW) can be used to dynamically allocate SCEERUN to the TSO/E execution environment. For more information about the TSO/E logon procedure, see z/OS Program Directory.

The EXECOPS option for C and C++ is used to specify that runtime options passed as parameters at execution time are to be processed by Language Environment. The option NOEXECOPS specifies that runtime options are not to be processed from execution parameters and are to be treated as program parameters. For z/OS XL C/C++, a user can specify either option in a #pragma runopts statement. For both z/OS XL C/C++ and z/OS XL C++ users, the options can be specified as compiler options. EXECOPS is the default for both z/OS XL C/C++ and z/OS XL C++. When EXECOPS is in effect, you can specify runtime options in the LOADGO command.