Using cataloged procedures

You can use one of the following cataloged procedures that are supplied with the z/OS® XL C/C++ compiler to run your program. Each procedure listed below includes an execution step:

For z/OS XL C programs:
EDCCBG
Compile, bind, and run a C program
EDCCLG
Compile, link, and run a C program
EDCCLG
Compile, pre-link, link, and run a C program
EDCQBG
Bind and run a 64-bit C program
EDCQCBG
Compile, bind, and run a 64-bit C program
EDCXCBG
Compile, bind, and execute an XPLINK C Program
For z/OS XL C++ programs:
CBCBG
Bind and run a C++ program
CBCCB
Compile, bind, and run a C++ program
CBCCLG
Compile, prelink, link, and run a C++ program
CBCG
Run a C++ program
CBCLG
Prelink, link, and run a C++ program
CBCQBG
Bind and run a 64-bit C++ program
CBCQCBG
Compile, bind, and run a 64-bit C++ program
CBCXBG
Bind and run an XPLINK C++ program
CBCXCBG
Compile, bind, and run an XPLINK C++ program
CBCXG
Run an XPLINK C++ program
For more information on these cataloged procedures, see Cataloged procedures and REXX EXECs.
Example: If you are using an IBM-supplied cataloged procedure, you must specify the runtime options on the GPARM parameter of the EXEC statement. Ensure that the EXECOPS runtime option is in effect.
//STEP   EXEC EDCCBG,INFILE='...',
//            GPARM='STACK(10K)/'
Example: You can also use the GPARM parameter to pass arguments to the z/OS XL C/C++ main() function. Place the argument, preceded by a slash, after the runtime options; for example:
//GO  EXEC EDCCBG,INFILE=...,
//         GPARM='STACK(10K)/ARGUMENT'
Example: If you want to pass an argument without specifying runtime options and EXECOPS is in effect (this is the default), precede it with a slash; for example:
//GO  EXEC  EDCCBG,...GPARM='/ARGUMENT'
//GO  EXEC  ,...GPARM='/z/OS UNIX System Services file:/u/mike/cloudy.C'
Example: If you want to pass parameters which contain slashes, and you are not providing runtime options, you must precede the parameters with a slash, as follows:
//GO  EXEC  EDCCBG,...GPARM='/z/OS UNIX System Services file:/u/mike/cloudy.C'
See also Specifying runtime options.