I have a requirement wherein there are 2 files with first 1 to 10 bytes as key to the files.
Both the files will have 26 values (each in SFF form) for a single record, and if the key matches in both the files, then I need to subtract the corresponding record values, i.e. file 2-file 1, and store the subtracted values in the output file.
Now my output file should have the subtracted values for each column
Code:
1001695001 2 20120323 +8565.8 +20938.6 -108295.2
RECFM=FB for both the files
LRECL=589 for both the files
I have searched this forum and could find the below sort card. I have tried using this for execution of my test case, but this seems to be working only for 1 column of values.
1) Could you possibly have duplicates for key values in any of the 2 files?
2) Are you always going to find a match?
3) Could you have orphan records from any of the 2 input files?
4) If you do find orphan records, what should be done for them? drop them or write as is?