Structure of AD control statements

The ADSTART control statement tells the batch loader that you want to start building a new AD and builds the general information section. Also, when an ADSTART is found in the input data set, it signals the batch loader to complete the previous AD, OI, or RG being built and write it to the database.

Put statements representing the remaining sections of the AD record after ADSTART. The sequence of control statements describing one AD is not important, except:
  • ADDEP, ADOPEXTEN, ADSR, ADOPSAI, ADUSF, and ADRE must follow the ADOP to which they belong, because they build subsections of an operation section.
  • An ADRULE statement must immediately follow its associated ADRUN statement.
The Example of control statement sequence illustrates this. Place control statements in a logical sequence to avoid mistakes and to make the input easier to read.