Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Aug 23, 2011 10:17 am Post subject:
relaxing,
You are already using ICETOOL select so it is easy to combine all of them into 1 step like this . You don't have to worry about modifying the contents based on the lrecl.
Code:
//STEP0100 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//INFILE DD *
1111111111AA X
1111111111CC X
1111111111ZZ X << SHOULD PICK THIS
1111111111BB X
2222222222ZZ Y
2222222222AA X << SHOULD PICK THIS
2222222222 X
//OUTFILE DD SYSOUT=*
//TOOLIN DD *
SELECT FROM(INFILE) TO(OUTFILE) ON(1,10,CH) FIRST USING(CTL1)
//CTL1CNTL DD *
INCLUDE COND=(20,1,CH,EQ,C'X')
SORT FIELDS=(1,10,CH,A,11,2,CH,D)
//*
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