View previous topic :: View next topic
|
Author |
Message |
knobi
New User
Joined: 16 Aug 2005 Posts: 54
|
|
|
|
hello, would be possible to this with sort ?
Basically, retrieve only the groups of 4 lines and merge the lines one after the other.
Input:
Code: |
lines...before/after
cccc blablabla
zzzz blabla
yyyy blabla
aaaa blabla
bbbb blabla
lines...before/after
cccc blablabla
zzzz blabla
yyyy blabla
aaaa blabla
bbbb blabla
lines...before/after
|
Code: |
cccc blablabla zzzz blabla yyyy blabla aaaa blabla bbbb blabla
cccc blablabla zzzz blabla yyyy blabla aaaa blabla bbbb blabla
|
|
|
Back to top |
|
|
knobi
New User
Joined: 16 Aug 2005 Posts: 54
|
|
|
|
small correction.. this are 5 lines groups...
and the second piece of code, from the above post is how would be the output. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Yes, if you can identify them sufficiently.
Look at ICETOOL's RESIZE operator. OMIT COND= for the stuff you don't want (or INCLUDE COND= for the stuff you want) in a USING which also includes an OUTFIL for your final processing.
Search for RESIZE examples. If you get stuck, show us what you've done and we should be able to move you on with it. |
|
Back to top |
|
|
knobi
New User
Joined: 16 Aug 2005 Posts: 54
|
|
|
|
i was trying to fit the code below on my jcl.. but not too much lucky so far...
any advise would be great
INREC IFTHEN=(WHEN=INIT,
OVERLAY=(134:SEQNUM,8,ZD)),
IFTHEN=(WHEN=(2,7,CH,EQ,C'WARNING'),
OVERLAY=(142:SEQNUM,8,ZD,
134:134,8,ZD,SUB,142,8,ZD,M11,LENGTH=8)),
IFTHEN=(WHEN=NONE,
OVERLAY=(134:SEQNUM,8,ZD)) |
|
Back to top |
|
|
knobi
New User
Joined: 16 Aug 2005 Posts: 54
|
|
|
|
i'm little behind on icetool... wasn't aware of resize... worked pretty good !
thanks ! |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Well, at just 19 minutes after my suggestion, you're catching up fast. Good work.
If you can post your solution, it may help others with a similar requirement. |
|
Back to top |
|
|
|