View previous topic :: View next topic
|
Author |
Message |
pattabiraman.baskaran
New User
Joined: 10 Aug 2006 Posts: 23
|
|
|
|
Hi,
My requirement is to skip certain records until specific condition is met.
For example:
My input file looks like this,
Code: |
111111
kgskgs
ajggfa
sdgdfvasfjsvf
sfjghasfjaghf
asfjghfjhasf
asvfasj
asjgfasjf
111111
|
Now, If DFSORT reads and processes the record 111111, it should skip all the records until next 111111 record is found.
I want to do this only with DFSORT or ICETOOL. If SKIPREC doesnot support this functionality, please guide me towards suitable option.
Thanks in advance. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
SKIPREC only skips a specified number of records (e.g. skip first 5 records). It cannot skip groups of records. You can use the technique shown in the "Include or omit groups of records" Smart DFSORT Trick at:
www.ibm.com/servers/storage/support/software/sort/mvs/tricks/index.html
to do this kind of thing.
If you need more specific help, you need to give a better example of your input records (with more than one group) and expected output records, and explain clearly the "rules" you want to use to determine which groups should be skipped. Also, give the RECFM and LRECL of the input file. |
|
Back to top |
|
|
|