Selecting your compare - source criteria


The Compare - Source Criteria Screen allows you to specify processing and output options for your Source compare.

Compare criteria

Use the following fields to specify the source criteria that you want File-AID to use in the comparison.

Field

Description

Source code language

Specify the language of the source code: specifies COBOL, specifies PL/1.

Line compare synchronization

Specify how to synchronize the compare.

L: Line content.

C: COBOL sequence number. Columns 1-6.

S: Standard sequence number. Columns 73-80.

Case Sensitive

Specify if case sensitivity is relevant to the compare.

A: Case must remain as is.

C: Convert to uppercase.

Columns to compare

Enter the column range (1-80) for the compare. Blank columns to compare will use the language default: 7-72 for COBOL. 2-72 for PL/1.

Exclude options

Use the following fields to specify what you want File-AID to exclude during the comparison.

Field

Description

Exclude comments

Enter Y (Yes--default) to exclude comments or N (No) to include the comments in the compare.

COBOL comments start with an '*' in column 7 OR a '/' in column 7 followed by the comment.
PL/1 comments start with a '/*' and end with an '*/'.

Exclude blank lines

Enter Y (Yes--default) to exclude blank lines or N (No) to include blank lines in the compare.

Exclude compiler directives

Enter Y (Yes--default) to exclude compiler directives or N (No) to include compiler directives in the compare.

COBOL directives include but are not limited to:

  • 'D' in column 7
  • '/' in column 7 (the rest of the line is blank)
  • EJECT
  • SKIP1/2/3
  • READY TRACE
  • *CONTROL

PL/1 directives include but are not limited to:

  • %noprint,
  • %note,
  • %option,
  • %page,
  • %pop,
  • %print,
  • %skip,
  • decl,
  • declare

Selection criteria action

Specify whether to I (Include) or E (Exclude) lines meeting the selection criteria in the compare.

Modify print defaults

Specify whether you want to modify the print options for the Compare Report. Print option values are saved in your user profile. Valid entries are Y (Yes) and N (No). All default print option values are the last print option values that you entered for the last source compare.

Compare - Source Criteria Screen

image2021-6-17_11-32-51.png

Steps:

  1. Type 1 in the Source code language field.
  2. Type C in the Line compare synchronization field.
  3. Type A in the Case sensitive field.
  4. Type Y in the Exclude comments field.
  5. Type Y in the Exclude blank lines field.
  6. Type Y in the Exclude compiler directives field.
  7. Type I in the Selection criteria action field.
  8. Type Y in the Modify print defaults field.
  9. Press Enter. File-AID displays the Compare - Print Options (Page 1) Screen.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*