Previous Topic: PARMS Statement

Next Topic: SORT Statement


SELECT Statement

Position

Field Length

Field Name

Notes

1

1

Reserved

Not used

2-9

8

Statement Type

SELECT

Input Indicators:

10-13

4

Required Blanks

 

14

1

Account Input

= no input required

15

1

History Input

1 = input required

16

1

No Input Indicator

1 = process from an existing account file

17

1

Edit Only

1 = edit all control statements but do not process and input

18-50

33

Required blanks

 

User-Defined Reports Selection Indicators:

51-80

2
.
.
.
Up to 14 additional occurrences
.
.

Set Code Table

1 to 15 occurrences of S where: S = set code for each selected report
= blank

This statement, identified by the statement type SELECT, is required. SELECT statement parameters let you define the source of input accounting data and select reports to be output by the Report Writer.

These input indicators tell the Report Writer whether or not to open the corresponding data sets to process input accounting data. The data produced by the VM Interface's translate component is level-7 history data, so History input would be the normal choice.

The no-input indicator specifies that no input files are to be processed, but that processing begins with an existing working account file. Use of this feature is intended for specific applications and is not meant as a substitute for account input. When used, the logic implied by a CRITERIA statement and the invocation of an account exit are bypassed. This capability is provided primarily to allow multiple executions of the Report Writer to produce more than 15 reports without having to recreate the working account file.

The edit-only indicator specifies that no input data is to be processed but that all requested sets of report control statements and any global control statements are to be edited for errors. The use of this feature is recommended when global control statements are present, since an error in one of these statements causes the rejection of all requested reports.

The Set Code Table lets you select as many as 15 report formats for generation in a single Report Writer run. Each Set Code Table entry is a one-character code indicating the report format selected for output, followed by a blank.