Previous Topic: SARGRW Control StatementsNext Topic: Database Fields for Report Control Record


Report Writer Field Names

Field names reference and maintain information or data by the general report writer:

Each field name can contain a single type of data. The types of data that can be maintained are as follows:

Dates are maintained as the number of days from January 1, 1900 in a binary format. Times are maintained as hundredths of seconds in a binary format.

When date fields are output with the OUTPUT control statement, they are output as a 4-byte Julian date in packed decimal as 0CYYDDDF, where:

To alter the appearance of the date field in the output file, use the EDIT function.

Date Field Example

The Julian date '0101025F' represents January 25, 2001.

Sequence in Which Database Records Are Accessed

The SARGRW utility program accesses database records based on the database fields that are referenced. The following guidelines determine the sequence in which database records are accessed:

When database fields from the report control record and tape control record are referenced, SARGRW retrieves all tape references for the report including continuation tapes. These tape references are primary backup tapes, duplex backup tapes, and disaster recovery tapes, or a combination of these tape types. The TAPESEQ field identifies the tape sequence number of the tape, and the TAPEPOS fields identify the location on the tape where the report resides. Use the TAPETYPE fields, TAPEDSN fields, or both fields, to determine the type and name of the tape being retrieved.