MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fill spaces with data in particular column using first rec

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Mon Jan 25, 2016 8:58 am    Post subject: Fill spaces with data in particular column using first rec Reply with quote

Hi,

Can you please let me know if we can output file this below using SORT.

Input file (FB/80)

Code:


1111          Siva        Company1     
              Ram         Company1
              Redd         Company1
          
2222          Jetty       Company2     
              Tulasi      Company2
              Venakat     Company2
          



Output file (FB/80)

Code:


1111          Siva        Company1     
1111          Ram         Company1
1111          Redd         Company1
          
2222          Jetty       Company2     
2222          Tulasi      Company2
2222          Venakat     Company2
          


Thanks,
Siva
Back to top
View user's profile Send private message
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Mon Jan 25, 2016 10:02 am    Post subject: Reply with quote

Yes, look at IFTHEN=(WHEN-GROUP), and PUSH the four-digit code to the position you want. RECORDS=3.

Have a go. If you can't get to it, tell us whether the blank records you show in your data are actually there or not.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Jan 25, 2016 10:33 am    Post subject: Reply with quote

sivafdms,
Code:

//SYSIN    DD *                                                 
  OPTION COPY                                                   
  INREC IFTHEN=(WHEN=GROUP,BEGIN=(1,4,CH,NE,C' '),PUSH=(1:1,4))
//*

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group