View previous topic :: View next topic
|
Author |
Message |
knobi
New User
Joined: 16 Aug 2005 Posts: 54
|
|
|
|
vertical repeat
I have searched the forum since i remember see something similar in the past.. but i wasn't able to find... so any help is welcome... I need to vertical repeat the string 1 and 2 until the end of the file.
Code: |
Input/FB80
. (data after/before)
text text text text tex STRING1
. (data continues)
text text text text tex STRING2
. (data continues)
Output
. (data continues)
text text text text tex STRING1
. STRING1
. (data continues) STRING1
. STRING1
text text text text tex STRING2
. STRING2
. (data continues) STRING2
. STRING2
|
i see something using splice in the past, So two questions come up
1)is splice the only operator now (z/os 1.12, 1.13 or 2.1) that can be used to do this ?
2)could someone point me to a sample code to achieve the above described ?? by the way..i was never a splice fan, don't know why |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
IFTHEN=(WHEN=GROUP with BEGIN for your data-to-copy-position,length,NE,C' ' and then PUSH the data-to-copy to the data-to-copy-position.
Most SPLICE usage is superseded by JOINKEYS. If you are up-to-date you will rarely need to look at SPLICE. |
|
Back to top |
|
|
knobi
New User
Joined: 16 Aug 2005 Posts: 54
|
|
|
|
Bill, any piece of code that you could point me? |
|
Back to top |
|
|
knobi
New User
Joined: 16 Aug 2005 Posts: 54
|
|
|
|
just got it, thanks... it's working now...
details here, z/OS V2R1.0 DFSORT Application Programming Guide, pag 158 |
|
Back to top |
|
|
|