Structure of RG control statements
The RGSTART control statement tells the batch loader that you want to start building a new RG and builds the general information section. Also, when an RGSTART 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 RG record after RGSTART. Every run cycle defined in a run cycle group must be represented by a sequence of RGRUN and ADRULE statements.
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.