Previous Topic: NAME Control StatementNext Topic: Input User Exit


COLLECT Control Statement

The COLLECT control statement identifies the data definition (DD) name of the input file to be collected by CA Deliver and optionally the name of the report definition used to distribute the report.

Syntax

COLLECT ddname  report-name

where:

ddname

Specifies the data definition (DD) name of the sequential input file to be collected by CA Deliver

The input file must be a physical sequential data set (DSORG=PS) that contains fixed, variable, or undefined records. Define the input file with machine or ASA carriage control characters for stacked or control report processing.

report-name

Optionally specifies the name of the report definition that is to be used for distributing the report. If the report-name contains an imbedded space or comma, enclose it in quotes – single (‘) or double (“).

If report-name is specified, you need not define that report under the execution job name. The step name, procedure step name, and DDname defined under the job is also ignored but are defined to differentiate it from other reports. The report can be defined as a basic, stacked, or control report. For stacked and control reports, this report designates the first report in a series of stacked or control reports.

If omitted, CA Deliver performs a database lookup based on the execution job name, step name, procedure step name, and this ddname to determine how to distribute the report.