Your input file is 10 bytes long. You have 5,219 in your INREC statement which obviously goes beyond your 10 byte input record. So of course you would get that error message. I don't understand why you're using 5,219 when your records are only 10 bytes long.
I can't tell you how to do what you want because you haven't clearly defined what it is you want to do and you haven't shown a good example of your input records and expected output records. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
The SELECT operator returns records that are duplicates as we have given ALLDUPS.
ALLDUPS here is used to bring out the rows that are matched.
Quote:
But this also gives me records that are duplicates in my IN1 which i do not need.
I need only need records that have a match in the IN2 file.
Consider the following example:
Contents of IN1 (Only the employee numbers, for example)
11111
11111
22222
33333
44444
44444
Contents of IN2 (Only the employee numbers, for example)
11111
44444
33333
55555
Now in the output file do u want the following records:
11111
33333
44444
(The job which kris gave u will fetch u the above results)
Or do u want the following records:
33333
(only the matching records that dont have dups in file A)
P.S: Please be clear in your requirement coz u didnt mention about this condition anywhere in the beginning. You have just said "The requirement is to compare both the files and get the records with common employee number(If the employee number is present in both the files). " Also use code tags for clarity. _________________ Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
The OUT is not the exact order as in the i/p, it will be in sorted order.
Let me know if you need it in the original i/p order. _________________ cHEERs
krisprems
All times are GMT - 5 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum