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 

Populating one field with another field

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


Joined: 25 Jan 2007
Posts: 40
Topics: 17

PostPosted: Mon Feb 19, 2007 10:08 am    Post subject: Populating one field with another field Reply with quote

Hi,

In the file, I need to populate one field with another field.
The file lenght is 60 bytes.

Field-1 PIC X(10).
Field-2 PIC X(15).
Field-3 PIC X(10).
Field-4 PIC X(15).
Field-5 PIC X(10).

I want to write a sort step, if the field-4 is spaces, then ONLY this should be populated with Field-2.

Your help is greatly appreciated.

Thanks
Satish.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Feb 19, 2007 10:14 am    Post subject: Reply with quote

SK2007,

try these sort control cards

Code:

//SYSIN    DD *                                 
  SORT FIELDS=COPY                             
  OUTREC IFTHEN=(WHEN=(36,15,CH,EQ,C' '),       
       OVERLAY=(36:11,15))                     
/*                                             


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SK2007
Beginner


Joined: 25 Jan 2007
Posts: 40
Topics: 17

PostPosted: Mon Feb 19, 2007 10:34 am    Post subject: Reply with quote

Thanks Kolusu for your help.
It is working as I expected.
Back to top
View user's profile Send private message
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