Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Vertical Repeat

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
knobi

New User


Joined: 16 Aug 2005
Posts: 46

PostPosted: Sun Jun 29, 2014 12:50 am    Post subject: Vertical Repeat
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Sun Jun 29, 2014 1:33 am    Post subject: Reply to: Vertical Repeat
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: 46

PostPosted: Sun Jun 29, 2014 1:45 am    Post subject:
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: 46

PostPosted: Sun Jun 29, 2014 3:44 am    Post subject: Reply to: Vertical Repeat
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to repeat part of previous recor... akashs DFSORT/ICETOOL 6 Fri Sep 04, 2015 8:58 am
No new posts Repeat Header on Control Break ovreddy DFSORT/ICETOOL 7 Sun Mar 31, 2013 12:28 pm
No new posts Transpose values from Vertical to hor... gayathrinag DFSORT/ICETOOL 14 Mon Dec 03, 2012 12:11 am
No new posts Syncsort - repeat recs rajesh1183 JCL & VSAM 13 Wed Jul 04, 2012 4:52 pm
No new posts Vertical records into horizontal layo... carlmgu DFSORT/ICETOOL 11 Fri Aug 19, 2011 9:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us