

File Matching › File Matching › How to Code Match-file Runs
How to Code Match-file Runs
Step 1
Sort all files in ascending match-key sequence.
See the chapter Additional Standard File Facilities for creating sorted files.
Step 2
Code:
- One INPUT parameter with the MK= option for each file to be matched.
Match keys must be either all numeric or all alphanumeric. Numeric types can be mixed:
- Specify the DD= option on all or none of the IN parameters.
- Specify MB=KEEP if a record is to be matched against multiple occurrences of another file.
- Correlate the coding sequence of the CA Culprit file definitions with the sequence of JCL statements that define the files (SYS010, SYS011, and additional increments, as needed).
- REC parameters immediately following the associated INPUT parameter:
- Use unique names for all fields.
- Use start positions that are relative to the beginning of the record (not to the beginning of the input buffer).
- Optional SELECT/BYPASS parameters:
- After the REC parameters of the specific file to be processed.
- With the BUFFER option immediately after the last input file definition if the processing applies to all files after matching takes place.
Copyright © 2014 CA.
All rights reserved.
 
|
|