Joined: 31 Jan 2008 Posts: 30 Location: Woodland Hills, CA
Hi,
Can we get the include condition parameters ('1234567') from a dataset?
SORT FIELDS=COPY
INCLUDE COND=(1,6,CH,EQ,C'1234567')
In the above example I have the data '1234567' in a dataset and I need to extract records from another dataset based on this parameter (Which is in first dataset).
In my case the first dataset have 1 lakh records. I need to automate this using a sort. Can we do this using SORT/ICETOOL or any other utility.
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
Take a look at the ICETOOL SELECT parameter, although you may have to reformat the records of one file to ensure that the two keys have a matching location.
I do have an example somewhere, and will try to find it later if I get time, although there are many examples in the forum already.