Use the BAT or BATCH command to open the batch list dialog box.

To create new batch press F5.
Batch wizard will open, which will give user various options to create the batch.

On the Batch Wizard - Main Parameters dialog box there are 3 options to create batch along with batch name batch proc name, which are explained below.
Batch object name:- Specify the name of batch.
Batch PROC name:- Specify the PROC name or path of PROC depending on the option chosen.
There 3 options provided to create the batch
- 1. Create batch PROC for QUERY:- New PROC will be created using the existing query, path of the existing query needs to be given on the next dialog
- 2. Create batch PROC for PROC:- New PROC will be created using existing proc, path of the existing PROC needs to be given on the next dialog.
- 3. Use Existing batch PROC:- Existing proc will be used for batch, choose the existing PROC.
1) Create batch PROC for QUERY:-
Provide PROC name on On the Batch Wizard dialog as shown on the above screen and press F8, Parameters for QUERY dialog will appear, click the + button and list of available queries will be shown, select the query or user can use the query from work area as well also existing form can be used to create the proc.
Result of the batch can be saved into the table for this column types and number of columns needs be matched, data will be overwritten each time when batch gets executed.

2) Create batch PROC for PROC:-
Provide PROC name on On the Batch Wizard dialog and press F8, on Parameters for PROC dialog click the + button and list of available PROCS will be shown, select appropriate PROC from the list, user can use the PROC from work area as well.

3) Use Existing batch PROC:-
On the Batch Wizard dialog Click on + button to open list dialog, select appropriate PROC from the list dialog and Press F8.
At this stage we are done with how PROC should be created from various methods.
After the creation of PROC user will get REPORT Parameters dialog to enter the email and other details to send the email once batch run is complete. this is optional and user can skip this dialog.

After pressing F8 common Parameters dialog will appear to enter the user credentials as well database login details, these details are required to run the batch.

Press enter key once done, user will return to the Batch List dialog box, where all the created batch are shown, to test newly created batch select the batch and press F2.
To edit the existing batch select the batch and press F4, sequence of dialog will appear same as new batch creation, user can navigate to desired dialog by pressing F8 and edit the details.
To remove batch select the batch and press F6.

Press F9 to export batch into JCL file, Provide the path and name on the Export JCL dialog box.
