If you specified a value of Y for the Automatically submit stage 2 option, as shown in Figure 3, the second part of the driver generation is automatically submitted. If you specified a value of N, you must manually submit the stage 2 batch job. The JCL for this is created by the stage 1 batch job in a sequential data set called tsoprefix.VID.STAGEII. No changes to the JCL are required. The steps in the stage 2 job are as follows:
Step # | Step Name | Function |
---|---|---|
1 | SQ000000 | Extract data generated in stage 1 from DB2®. |
2 | PC | Precompile with the DB2 DSNHPC program. |
3 | SPLIT | Split the modified source from the PC step. |
4 | ASMB001 | Assemble the first CSECT. |
5 | ASMB002 | Assemble the second CSECT. |
6 | LINK | Link the object decks into an executable module. |
7 | BIND | Bind the DBRM from the precompile step. |
The PC step always ends with a return code of 04, and this can be ignored. The LINK step might end with a return code of 04, depending on local system defaults. You can ignore this. All other steps should return a condition code of zero.
The number of assembly steps (ASMB00x) depends on the value specified for the No of concurrent threads parameter. A value of 1 results in two assembly steps, a value of 3 results in six assembly steps, and so on.
The output from the generation stage 2 job is a DDM driver and a DB2 DBRM.