Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Please show an example of the records in each input file (relevant fields only) and what you expect for output. If input file1 can have duplicates within it, show that in your example. If input file2 can have duplicates within it show that in your example. Explain the rules for getting from input to output.
Give the RECFM and LRECL of the input files. Give the starting position, length and format of each relevant field in each input file.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Are you saying that you want to count the number of values for a key in file2, and overlay that count into the No of occurance field in file1 for that key?
In your example, are you showing the input for file1 and file2? If so, would the output for your example be:
Code:
123456 02
123457 03
123458 05
Again: Give the RECFM and LRECL of the input files. Give the starting position, length and format of each relevant field in each input file.