View previous topic :: View next topic |
Author |
Message |
SK2007 Beginner
Joined: 25 Jan 2007 Posts: 40 Topics: 17
|
Posted: Mon Feb 19, 2007 10:08 am Post subject: Populating one field with another field |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon Feb 19, 2007 10:14 am Post subject: |
|
|
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 |
|
|
SK2007 Beginner
Joined: 25 Jan 2007 Posts: 40 Topics: 17
|
Posted: Mon Feb 19, 2007 10:34 am Post subject: |
|
|
Thanks Kolusu for your help.
It is working as I expected. |
|
Back to top |
|
|
|
|