Building a job online

When you build a job, Db2 Automation Expert does one of the following: constructs a JCL job to run utilities on the objects that are specified in the object profile; schedules active actions to be run during the next maintenance window; or inserts passive actions into the action list, but does not schedule them. If you included an exception profile in the job profile, Db2 Automation Expert checks for exceptions during the job build. If a job profile is built for active or passive action, the job profile must contain an exception profile.

About this task

This topic describes building a job online that results in a JCL job. For building a job that generates active and passive actions, see Building a job profile for automated utility execution.

Procedure

  1. On the Db2 Automation Expert main menu, enter 4 in the Option field and press Enter.
  2. On the Jobs Profile Display, enter B in the Cmd line next to the profile you want to build and press Enter.
    The window shown in the following figure is displayed:
    Figure 1. Build Job window
                          Build Job for TWUSR.DAJ-13630                     
                                                                            
     Build Online or Batch. . O (O - Online, B - Batch)                     
     Schedule Job . . . . . . N (Yes/No)   Update options . . N (Yes/No)    
                                                                            
     JCL Output Options:                                                    
      Edit Generated Job . . . Y (Yes/No)                                   
      Build job in Data set. . TWUSR.DAJ.TEST                               
                    Member . . V11 TS                                       
                                                                            
      Job Cards:                                                            
      ==> //JOBCARD JOB TWUSRA,CLASS=A,NOTIFY=&SYSUID                       
      ==> //*                                                               
      ==> //*                                                               
      ==> //*                                                               
                                                                            
  3. To build online, enter the letter O in the Build Online or Batch field.
  4. To schedule a JCL job, enter Y in the Schedule Job field.
    Note: You cannot schedule an online job build for automated utility execution.
    For more information about scheduling a job, see Scheduling the job for the Db2 administrative task scheduler.
  5. To edit the generated JCL job, enter Y in the Edit Generated Job field.
  6. Enter a valid data set and member name for the generated JCL job in the Build job in Data set and Member fields.