Space banner


This space provides the same content as before, but the organization of the home page has changed. The content is now organized based on logical branches instead of legacy book titles. We hope that the new structure will help you quickly find the content that you need.

Control card syntax for batch reports

The format and content of MainView SRM batch reports are specified in control card input.

For example, the order in which fields are printed on the report line is specified by using the ORDER statement, and the sequence of report output lines is controlled by using the SORT statement. Sorting of data and ordering of columns, combined with powerful data-content filtering, allow these reports to be tailored to satisfy virtually any need. The control card parameters and syntax described in this section are common to all MainView SRM batch reports. Multiple reports can be generated in a single batch job.

Control cards are used to specify what reports should be produced, what data they should contain, and how that data should be displayed. The format of the control card for batch reports is a verb followed by one or more operands. The basic structure for all verbs is similar. Following the verbs are operands that control the content and format of the report produced:

  • Option keywords limit data included in the report.

  • Field name filters control what data is included in the report.

  • Field names within an ORDER statement control the order of the data columns across the printed line.

  • Field names within a SORT statement control the order of the data line in the output.

The following general syntax rules apply to all control cards:

  • One or more spaces must separate the verb and its operands.

  • Values specified for operands are enclosed in parentheses if they contain special characters.

  • Null operands are not permitted. A blank enclosed in parentheses ( ) is considered a null.

  • If multiple operands for a verb are required, they must be separated by a comma. An operand that is not followed by a comma is the last operand for the preceding verb.

  • Comment lines can be included by placing an asterisk (*) in column one.

  • Comments can be placed on any line by preceding them with a hyphen (-).


Scanning of the line is stopped at the hyphen; all remaining text on the line is regarded as comments.

For more information, see:

Was this page helpful? Yes No Submitting... Thank you