DB2 graphic QMF Version 8

Setting proc program generation options

If you set the Generate Proc Program? flag on the Report List panel to Y, the Proc Program Generation Options panel will be displayed.

Table 14. Proc Program Generation Options
DB2P / DB2PLOCATION -- Proc Program Generation Options --------------- 8.1.0
Command ===>
Procedure :
------------------------------------------------------------------Options...
Program/Plan Name......... ===>
Environment............... ===>    (B=Batch, T=TSO, C=CICS)
COBOL Dialect............. ===>    (1=OS/VS, 2=VS-II, 3=MVS, 4=OS/390)
Attachment Facility....... ===>    (C=CAF, T=TSO)
CAF Module Usage.......... ===>    (H=HPO CAF, D=DB2 CAF)
Author.................... ===>
Select All Report Programs ===>    (Y=Yes, N=No)

Write Source Code To:
Data Set ===>
Member.. ===>           (blank=Program/Plan Name)




 
 

If you press Enter, all input fields will be validated. If any errors are detected during input validation, the panel will be redisplayed with an error message.

If the Select All Report Programs flag is set to N, you proceed to the Select Report Programs panel. Otherwise, the program will be generated with the specified options. After generation, the Actions After Generation pop-up window will display, allowing you to specify subsequent actions to take. If there is a processing error, you return to the Report List panel.

If you press PF3, all input fields will be ignored and you will return to the Report List panel. No generation will take place.

If you type ABORT and press Enter, all input fields will be ignored and you will return to the Report List panel. No generation will take place.

The fields on the panel are:

Program/Plan Name
Enter the name of the program to generate. The name entered must conform to plan and program ID naming rules.
Environment
Enter B to generate an MVS batch program, T to generate an online TSO program, or C to generate an online CICS program.
COBOL Dialect
Enter 1 to generate an OS/VS COBOL program, 2 to generate a VS COBOL II program, 3 to generate a COBOL for MVS program, or 4 to generate a COBOL for OS/390 program.
Attachment Facility
Enter T to generate a program that uses the TSO attachment facility, C to generate a program that uses the call attachment facility, or R to generate a program that uses the RRS attachment facility (RRSAF). This option must be T or C for a TSO program. This option is ignored for a CICS program.
CAF Module Usage
Enter D to generate a program that uses the DB2 call attachment module (DSNALI) or H to generate a program that uses the HPO call attachment module (AACAF). This option is ignored if Attachment Facility is not C.
Author
Enter the value to use as the program author in the generated program.
Select All Report Programs
Enter Y if the generated program should run all of the reports in the current Report List. If you enter N, a selection list will be displayed allowing you to select the reports the proc program should run.
Source Code Data Set
Enter the data set to which the generated program should be written. If the data set does not exist, the Allocate Data Set pop-up window will be displayed, allowing you to allocate it. If the name is enclosed in single quotes, it is taken to be a fully qualified TSO data set name. Otherwise, your current TSO profile prefix is used to qualify the name.
Source Code Member
If the specified Source Code Data Set is a PDS, this is the member to which the generated program should be written. If you leave this field blank, then the value in the Program/Plan Name field will be used. If the Source Code Data Set is not a PDS, this field must be left blank.

Selecting report programs

If you set the Select All Report Programs flag on the Proc Program Generation Options panel to N, the Select Report Programs panel will be displayed. From this panel, you can select the reports the proc program should run.

Table 15. Select Report Programs
DB2P / DB2PLOCATION -- Select Report Programs ------------------------- 8.1.0
Command ===>                                                Scroll ===> PAGE
Use Y or N to select report programs.
Press ENTER to process.
Type CAN or CANCEL or press PF3 to end.
Browse Procedure? (Y/N) ===>
                                                             Program
Num Query                       Form                         Name      Select?
--- --------------------------- ---------------------------  --------  -------
****************************** Bottom of data *****************************
 
 
 
 
 
 
 
 

If you press Enter, all input fields will be validated. If any errors are detected during input validation, the panel will be redisplayed with an error message. Otherwise, the proc program will be generated for the selected reports. After generation, any actions for after generation that you selected on the Proc Program Generation Options panel will be processed, and you will return to the Report List panel.

If you press PF3, all input fields will be ignored and you will return to the Report List panel. No generation will take place.

If you type ABORTand press Enter, all input fields will be ignored and you will return to the Report List panel. No generation will take place.

The fields on the panel are:

Browse Procedure?
If this flag is set to Y, then a browse session will be started displaying the input procedure. If it is set to N, the input procedure will not be browsed.
Select?
Enter Y to include this report in those that the proc program will run. All report programs run by the proc program must have the same characteristics, for example, they must all be batch programs, all TSO programs, or all CICS programs.


Go to the previous page Go to the next page

Downloads | Library | Support | Support Policy | Terms of use | Feedback
Copyright IBM Corporation 1982,2004 Copyright IBM Corporation 1982, 2004
timestamp Last updated: March, 2004