Mainframe Job Code Generation window

Use the Code Generation window to validate mainframe jobs and generate code.

The window contains the following controls and fields:
Code generation path
Specifies the base location for the COBOL program and JCL files. Each mainframe job holds the COBOL program and JCL files in a subdirectory of the base location that reflects the engine tier host name, project name, and job. For example, if the base location is C:\IBM\InformationServer\Clients\Classic\Gencode, a complete path name might be C:\IBM\InformationServer\Clients\Classic\Gencode\R101\datastage\mjob1.

You can also specify the code generation location in the Designer client options. If you specified a path name in the Options window, the path name automatically appears in Code generation path field. If not, then a default path name is created. You can edit this path name.

Cobol program file name
Specifies the name of the COBOL program. The name can have up to eight alphanumeric characters. The first character must be alphabetic. The default name is DSn, where n is the internal job number. You can edit this name.
Compile JCL file name
Specifies the name of the compile JCL file. The name can have up to eight alphanumeric characters. The default name is DSnC, where n is the internal job number. You can edit this name.
Run JCL file name
Specifies the name of the run JCL file. The name can have up to eight alphanumeric characters. The default name is DSnX, where n is the internal job number. You can edit this name.
Trace runtime information
Specifies whether to produce runtime information about the program flow or the data that is read and written. Select one of the following options:
None
No information is generated. This option is the default.
Program flow
The COBOL program is generated with a DISPLAY of every paragraph name as it is executed. The paragraph names are indented to reflect the nesting of PERFORMs.
Data flow
Data is printed as it is being read or written. For all source and target stages except Relational stages, the entire buffer is printed without columns being identified. For Relational stages, individual column values in the SELECT, INSERT, or UPDATE statements are printed.
Program and Data flow
Both the program flow and the data flow are printed.
IMS Program Type
Specifies the type of IMS program to generate: BMP or DLI. DLI is the default option. This field is available only if there is an IMS stage in the job.
Generate COPY statements for customization
Select this option if you want to customize the generated COBOL program. You can use this option to perform a task at the beginning of the program, the end, or both.
Copy library prefix
This field allows you to manage several versions of the COPYLIB members that are used for code customization.
Progress
Displays the progress of the code generation process.
Status
Displays messages about validation or code generation.
Generate
Validates the job design and generates the COBOL code and JCL files to transfer to the mainframe.
View
Displays the generated COBOL and JCL files. You can select the file that you want to view from a pop-up menu that is available after code is successfully generated. Microsoft Notepad is the default viewer, but you can specify a different tool in the Designer client options.
Upload job
Opens the Remote System window so that you can connect to the target mainframe system for job upload. This button is available after code is successfully generated.