Previous Topic: Coding the ReportNext Topic: How to Define the Output


How to Define the Input

To define the input data, code:

  1. An INPUT (IN) parameter to describe the file
  2. A REC parameter for each data field used in the report

Sample Parameters

IN 200 F 400 PS(TAPE)

200 tells CA Culprit that each record in the personnel file contains 200 characters (bytes).

F indicates fixed-length records.

400 indicates that the file is blocked in 400 byte segments.

PS(TAPE) specifies a physical sequential file on a tape device.

REC EMPLOYEE-NAME 5 25

EMPLOYEE-NAME 5 25 directs CA Culprit to use the data stored in positions 5 through 25 of each record.

REC SALARY-AMOUNT 160 7 3 DP=2

SALARY-AMOUNT 160 7 directs CA Culprit to use the data from positions 160 through 166 for salary information.

3 tells CA Culprit that the salary data is stored as packed decimal.

DP=2 tells CA Culprit that SALARY-AMOUNT has two decimal places.