IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Vertical Repeat


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
knobi

New User


Joined: 16 Aug 2005
Posts: 54

PostPosted: Sun Jun 29, 2014 12:50 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sun Jun 29, 2014 1:33 am
Reply with quote

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
View user's profile Send private message
knobi

New User


Joined: 16 Aug 2005
Posts: 54

PostPosted: Sun Jun 29, 2014 1:45 am
Reply with quote

Bill, any piece of code that you could point me?
Back to top
View user's profile Send private message
knobi

New User


Joined: 16 Aug 2005
Posts: 54

PostPosted: Sun Jun 29, 2014 3:44 am
Reply with quote

just got it, thanks... it's working now...
details here, z/OS V2R1.0 DFSORT Application Programming Guide, pag 158
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts Repeat a DD line- comment and insert ... CA Products 3
No new posts SORT - To repeat a string in same col... SYNCSORT 3
No new posts JCL - To repeat a string in same colu... JCL & VSAM 2
No new posts File-aid batch how to repeat a line... Compuware & Other Tools 2
Search our Forums:

Back to Top