DB2-supplied JCL procedures for preparing an application

You can precompile and prepare an application program using a DB2®-supplied JCL procedure.

DB2 has a unique JCL procedure for each supported language, with appropriate defaults for starting the DB2 precompiler and host language compiler or assembler. The procedures are in prefix.SDSNSAMP member DSNTIJMV, which installs the procedures.

Table 1. Procedures for precompiling programs
Language Procedure Invocation included in…
High-level assembler DSNHASM DSNTEJ2A
C DSNHC DSNTEJ2D
C++ DSNHCPPDSNHCPP22 DSNTEJ2EN/A
Enterprise COBOL DSNHICOB DSNTEJ2C1
Fortran DSNHFOR DSNTEJ2F
PL/I DSNHPLI DSNTEJ2P
SQL DSNHSQL DSNTEJ63
Notes:
  1. You must customize these programs to invoke the procedures that are listed in this table.
  2. This procedure demonstrates how you can prepare an object-oriented program that consists of two data sets or members, both of which contain SQL.

If you use the PL/I macro processor, you must not use the PL/I *PROCESS statement in the source to pass options to the PL/I compiler. You can specify the needed options on the PARM.PLI= parameter of the EXEC statement in the DSNHPLI procedure.