GROUP control statement


The GROUP control statement allows you to specify keywords that will be in effect for all functions within the group.

If you code a keyword in the GROUP control statement, it is like placing the keyword in every control statement within the GROUP. If the same keyword appears on a function control statement, the Image Copy function uses the value in the function control statement.

In the following example, the Image Copy function is requested to dynamically allocate most data sets.

//ICPSYSIN DD *
  GROUP NAME(GROUPA)
  IC    DBD(ABCD123) ICALLOC(Y)
  IC    DBD(ABCD234) ICALLOC(Y)
  IC    DBD(ABCD345) ICALLOC(N)
  AIC   DBD(ABCD567) ICALLOC(Y)

You can include ICALLOC(Y) in the GROUP control statement to achieve the same results.

//ICPSYSIN DD *
  GROUP NAME(GROUPA) ICALLOC(Y)
  IC    DBD(ABCD123)
  IC    DBD(ABCD234)
  IC    DBD(ABCD345) ICALLOC(N)
  AIC   DBD(ABCD567)

If you omit the GROUP control statement, the Image Copy function generates a GROUP statement for you.

A user-defined group consists of a GROUP control statement followed by one or more function control statements. These function control statements identify the data set groups or areas to be processed, and the function to be performed.

A DBRC-defined group consists of a GROUP control statement that references a list of data set groups and areas registered within DBRC. The GROUP control statement, in this case, identifies the data set groups or areas to be processed and the function to be performed. The GROUP control statement can be followed by one or more function control statements.

This section contains the following topics:

Related topic

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*