I have 2 files in easytrieve. I have to compare 2 fileds from both the fileds and need to write to output files. But in the first input file the fileds are.. alphanumeric. Eg:
I-DEP-NO 15 2 A
I-CLM-ID 43 14 A
and in the second input file these 2 fileds are..packed decimala nd binary..
DEP-NO 13 2 B
CLM-ID 15 6 P
Could you please suggest me how to compare these fields?
Declare working storage for each field as numeric
W-DEP-NO 2 N
W-CLM-ID 14 N
move that I-DEP-NO 15 2 A
I-CLM-ID 43 14 A to the working storage (i guess 15 43 is the starting position)in the same way do it for the second easytrieve.
now you can compare and write it to an output file.
Thanks for you reply. But I have one more question. I need to compare the both input files with the dep-code and clim-id fields then have to write to third file. But the problem is when we open the input files (JOB INPUT stmt) that time need to give key fileds (comparing fileds). So I think we cannot move to them to the working storage fileds and compare.