Restart and Control Mechanism

SMA procedures use job variables to monitor the result of BS2000/OSD utilities or of Natural if the parameter JV is set to YES and the BS2000/OSD product Jobvariables is available.

In addition SMA offers the possibility to restart installation jobs. To use this function the parameters RR (Restart Routine) and JV (Jobvariable) must be set to YES.

The installation jobs store the following information in the job variable SMAJV (see parameter SMAJV):

No. Position Length Content
1 1 3 'JOB'
2 5 4 Name of the job. For example: I055.
3 10 8 Status of the job:
  • STARTED

  • RESTART

  • NORMEND

  • ABEND

4 19 4 'STEP'
5 24 8 Name of the step
6 33 8 Not used
7 42 11 Date with format: yy-mm-ddjjj (yy=year, mm=month, dd=day, jjj=julian date)
8 54 8 Time with format: hh:mm:ss (hh=hours, mm=minutes, ss=seconds)
9 63 8 Name of SMA environment
10 71 1 ‘<’ (end of jv)

If you restart an installation job, SMA branches to the label (which is identified by the name of the step) if the name of the job is equal to the job name stored in the SMAJV and if the status of the job is not equal NORMEND. Otherwise, the job will be executed beginning with the first step of the job.