Previous Topic: Developing a File of Control StatementsNext Topic: Parameter Statement


Filling in Worksheets

Write in the title first

Start a worksheet for each group of records, as shown in the figure above by writing the descriptive title (that is, file or other group identifier) after the header REPORT=. The descriptive title clearly identifies the group of records, most commonly a particular file that may be known by many different names in the system of programs. Next, enter from one to three of the following variables, line by line, on each worksheet:

  1. Program ID
  2. Record name
  3. Qualification

Each line represents one selection statement

Each line on the worksheet represents one selection statement. The variable(s) specified on each line causes the Cross Reference Processor to select the defined subset of records. For example, supplying a program ID only specifies that all records from the named program are to be included in the report, supplying a record name only specifies that the record associated with that name is to be included. Often, a single record from a file is called by many different names in a system of programs. In this case, many separate names are needed to specify the selection of all copies of the record. Each line contains a different name for the record. Guidelines for specifying various combinations of the three variables are presented below.

Use Program Processor reports to fill in worksheets

The reports produced by the Program Processor can be helpful in filling in the worksheets:

Guidelines for specifying selection variables

The record name is the key variable in specifying selection criteria. Most commonly, the record name alone is used to identify a member of the group of records to be reported on. However, it may be advantageous to further qualify record name (because, for example, the name is not unique) or to request the inclusion of records without regard to record name (because, for example, the objective of the report is to look at all records in the LINKAGE section of all programs). All possible combinations of program id, record name, and qualification are valid. Listed below are guidelines for supplying the program id, the record name, and/or a qualification. Note that the qualification can be an FD file name or keywords to indicate the WORKING STORAGE or LINKAGE sections.

Field

Description

Record name only

If the same record name is used in different programs and always exclusively for the file under consideration, supply only the record name.

Record name and FD file name (that is, qualification)

If the same record name is used in a single program for multiple files, supply the record name and the FD file name. Program ID can be left blank unless the record name is used in other ways in the system of programs being processed.

Record name and program ID

If the same record name is used for different files in different programs, supply the record name and program ID for each record that applies to the file under consideration. Qualification can be left blank unless the record name is also used for multiple files in the program.

FD file name (that is, qualification)

If all record descriptions for an FD are to be included, supply the FD file name under qualification. If, throughout the system of programs, the FD file name is used only to refer to the file to be cross referenced under the specified title, leave the program ID and record name blank. All record descriptions for the FD file name from any program in the system will be cross referenced and reported. However, if the FD file name is used for different files in different programs, a line must be completed for each program. Each line must supply the FD file name, under qualification, as well as the program id. All record descriptions for the FD file name in the specified programs will be cross referenced and reported.

WORKING STORAGE or LINKAGE (qualification)

If all record descriptions from the WORKING STORAGE or LINKAGE sections are to be included, supply the appropriate keyword under qualification.

None of the three variables

If all records from all programs are to be cross referenced together, omit selection statements altogether.

Summary table

The following table summarizes the subsets of records selected based on the combination of variables specified.

Combination of variables

Description

Blank

Specified

Blank

The named record from all programs with no qualification (that is, from all FD files and from all sections).

Blank

Specified

Specified

The named record from all programs as qualified (that is, from the FD file specified or from the working storage or linkage sections).

Blank

Blank

Specified

All records from all programs as qualified.

Specified

Blank

Blank

All records from the named program (with no qualification).

Specified

Blank

Specified

All records from the named program as specified.

Specified

Specified

Blank

The named record from the named program (with no qualification)

Specified

Specified

Specified

The named record from the named program as qualified.

Blank

Blank

Blank

All records from all programs (with no qualification).