Posted: Mon Aug 18, 2008 10:09 am Post subject: ICETOOL help needed
Hi all,
I am trying to accomplish the following in one signle step using ICETOOL utility. Could anyone please suggest how I should go about it?.
I have an input file which looks like :
Code:
A 014 C
A 015 I
B 052 C
B 088 C
B 005 I
I need to have the output file which should have only rows having "C". But the challenge here is, the numeric field in "I" rows in "A" and "B" should be added as a new column in "A" and "B" record. For Example, my output should look like below
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Mon Aug 18, 2008 10:28 am Post subject:
spalanis,
With z/OS DFSORT V1R5 PTF UK90013 (July, 2008), you can do this using DFSORT's new WHEN=GROUP function
Code:
//STEP0100 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
----+----1----+----2----+----3----+----4----+----5----+----6--
A 014 C
A 015 I
B 052 C
B 088 C
B 005 I
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,4,CH,A,11,1,CH,D)
OUTREC IFTHEN=(WHEN=GROUP,BEGIN=(11,1,CH,EQ,C'I'),
PUSH=(15:5,3))
OUTFIL OMIT=(11,1,CH,EQ,C'I')
/*
For complete details on the new WHEN=GROUP function and the other new functions available with PTF UK90013, see:
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