Modify the JCL to run the C language processor
You must perform this step if you are installing BMC AMI DevX Code Debug for TSO and you are licensed for the C language processor.
This step contains instructions for both the C language preprocessor and post-processor. You should follow the instructions that apply to the type of processing you will be performing.
Preprocessor
SLCXCNTL sample library member CXCPRE contains sample JCL necessary to run the C language preprocessor.
Modify the compile step of your C JCL:
- On the EXEC statement, change the name of your compiler to CWPZMAIN and add the following to any existing C compiler options:
LANGUAGE(compiler version)
See C-compiler-options for a list of the compiler versions that can be specified with the LANGUAGE command. The default compiler for C is the compiler currently in use on your system.
- Add the ECC SLCXLOAD DSN to the STEPLIB or JOBLIB concatenation if it is not in the link list.
- Add the CWPDDIO DD statement to specify the name of the source listing DDIO file you will be using. The source listing DDIO file may be in standard DDIO, shared directory, or database format.
- Determine the language processor options you will use as input and add them to the EXEC parameter, or add a CWPPRMO DD statement that points to the appropriate options. Sample options are contained in SLCXCNTL sample library member CXLPC to provide the smallest output to the source listing file (for minimizing space). If you use these options, and you will be using the C language preprocessor, add LANGUAGE(xxx) to the EXEC PARM or to the CWPPRMO DD statement.
Post-processor
You can use the post-processor to process compile listings that were previously stored, or you can modify your C compile JCL to pass the compiler listing to the post-processor as described here:
- Check the C compiler options.
- Change the C compile JCL to write the compiler listing (SYSCPRT) to a sequential file for use as input to the C language post-processor. A sample of the necessary JCL is shown here.
// DCB=(RECFM=VB,BLKSIZE=16096),
// DISP=(MOD,PASS)
For more information on C language processor JCL, see C-Language-processor.
The above example is a temporary file. You can save the JCL as a permanent file to be reused as shown in the example here:
- The SYSPRINT file will be LRECL=133, RECFM=FBA.
- Add SLCXCNTL sample library member CXC as the post-processor step following your C compile step. CXC can be customized to meet your site’s requirements.
- The object module that is processed by the post-processor must be used as input to the linkedit step.