Posted: Wed Feb 04, 2009 8:44 pm Post subject: File comparison using the values of the 2nd file as the key
I have a file which has rows some thing like this below
x
x
x
y
y
y
a
a
a
i
i
i
I have sort card to remove i,y from the above file some thing like this.
SORT FIELDS=(1,1,CH,A)
OMIT COND=(1,1,EQ,C'i,y')
END
Here is my questions if this omit list is big( i,y) , i would not like to put this whole list in the sort card.Rather i would like to put the list it in another file.
Could this be done like this. Please let me know your suggestions.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Wed Feb 04, 2009 9:12 pm Post subject:
harikiran2001,
Yes you can put unwanted record list in another file and use that file to eliminate the records from the master file.
Inorder to help you we need the LRECL,RECFM of the master file and your lookup file. Also the position and format of the field which needs to be eliminated _________________ Kolusu
www.linkedin.com/in/kolusu
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