Building the sample preprocessor TMPLT00

Learn how to build the sample PL/I preprocessor TMPLT00.

About this task

TMPLT00 is an ILC (Inter-Language Communication) program. It is a PL/I program that calls a C module to get the data set name associated with a DD card. The C module that is called is ZFLDATA.

To see the code for TMPLT00, refer to PL/I program for generating error feedback XML and creating expanded source.

To see the code for ZFLDATA, refer to C program for error feedback

Procedure

To build the sample preprocessor TMPLT00, do these steps. Click the links in the following procedure for further instructions for each step:

  1. Create a z/OS® project.
  2. Create two MVS subprojects: one for TMPLT00 and one for ZFLDATA.
  3. Create a property group named "Property Group for C Parts" for the ZFLDATA subproject with the following property settings:
    Table 1. Property Group for C Parts
    Property Group Page Property Group Settings
    Property Group Categories Select the following categories:
    • C/C++ Settings
    • JCL Job Card and Data Set
    • Link Options
    • Runtime Options
    C/C++ Settings On the Procedures and Steps page:
    • Enable the ELAXFCPC procedure.
    • Specify the following options for the C step:
      • Compiler options: TEST SOURCE NOMAR NOSEQ NOLIST
      • Object Deck Data Set: <HLQ>.CPPOBJS.OBJ
      • System Libraries: EDCV120.SeDCDHDR
      • Event File Data Set: <HLQ>.SYSEVENT
      • Additional JCL: Include any additional JCL required by your site.
    Link Options On the Procedures and Steps page:
    • Enable the ELAXFLNK procedure.
    • Specify the following options for the LINK step:
      • Link libraries: SYS1.SCEELKED SYS1.SCEEMAC
      • Use specified link instructions: ORDER CEESTART
      • Load module location: <HLQ>.LOAD
      • Additional JCL: Include any additional JCL required by your site.
    Runtime Options On the Procedures and Steps page:
    • Enable the ELAXFGO procedure.
    • Specify the following options for the RUN step:
      • Run in batch with debugger: Select this radio button.
      • Runtime options/Program parameters: Select this radio button.
      • Additional JCL:
      //SYSXMLSD DD DSN=&amp;SYSUID..TEMP.WSEDSF1,DISP=(NEW,CATLG),
                  DCB=(RECFM=VB,LRECL=16383,BLKSIZE=27998),
                  SPACE=(TRK,(200,40))
  4. Create a property group named “Property Group for PL/I Parts” for the TMPLT00 subproject with the following property settings:
    Table 2. Property Group for PL/I Parts
    Property Group Page Property Group Settings
    Property Group Categories Select the following categories:
    • PL/I Settings
    • JCL Job Card and Data Set
    • Link Options
    • Runtime Options
    PL/I Settings On the Procedures and Steps page:
    • Enable the ELAXFPLP procedure.
    • Specify the following options for the PLI step:
      • Object deck data set: <HLQ>.PLIOBJS.OBJ
      • SYSLIB: <HLQ>.PLI.INCLUDE.CEE.SCEESAMP
      • Support Error Feedback: Select this check box.
      • Data Set qualifier for compiler errors: <HLQ>.ERRPLI
      • Additional JCL: Include any additional JCL required by your site.
    Link Options On the Procedures and Steps page:
    • Enable the ELAXFLNK procedure.
    • Specify the following options for the LINK step:
      • Link libraries: <HLQ>.CPPOBJS.OBJ SYS1.SCEEMAC SYS1.SCEELKED
      • Use specified link instructions: ORDER CEESTART
      • Load module location: <HLQ>.LOAD
      • Additional JCL: Include any additional JCL required by your site.
    Runtime Options On the Procedures and Steps page:
    • Enable the ELAXFGO procedure.
    • Specify the following options for the RUN step:
      • Run in batch: Select this radio button.
      • Runtime options/Program parameters: Select this radio button.
      • Additional JCL: Include any additional JCL required by your site.