View previous topic :: View next topic
|
Author |
Message |
rajkumarprajapati
New User
Joined: 20 Nov 2008 Posts: 9 Location: Delhi
|
|
|
|
I need to copy the records is cols 13-14 and 33-24 has value 00.
records in input file as -
0514XX24173202 0514XX24173201
I have tried with but it copied all records in output file.
//SYSIN DD *
SORT FIELDS=COPY
INREC IFTHEN=(WHEN=(13,2,CH,EQ,C'00',AND,33,2,CH,EQ,C'00'),
BUILD=(1,40))
Could you please help on this?
Thanks! |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Look at INCLUDE/OMIT COND= |
|
Back to top |
|
|
rajkumarprajapati
New User
Joined: 20 Nov 2008 Posts: 9 Location: Delhi
|
|
|
|
yes, it is working correctly..
SORT FIELDS=COPY
INCLUDE COND=(13,2,CH,EQ,C'00',AND,33,2,CH,EQ,C'00')
Thanks for point out mistake |
|
Back to top |
|
|
|