View previous topic :: View next topic
|
Author |
Message |
c_mayur
New User
Joined: 21 Jul 2007 Posts: 4 Location: India
|
|
|
|
My file looks like this
Code: |
PRL001 ,06/07/2014,03/05/2014
PRL002 ,06/10/2014,01/31/2014
PRL001 ,06/07/2014,02/06/2014
PRL002 ,06/09/2014,03/14/2014 |
Need to format the file to have output like this
Code: |
06/07/2014,PRL001 ,03/05/2014
06/10/2014,PRL002 ,01/31/2014
06/07/2014,PRL001 ,02/06/2014
06/09/2014,PRL002 ,03/14/2014 |
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It is a simple BUILD on INREC. Specify the start/length of each input field, in the order you want them on the output. Done.
What is the problem you've had? Did you try to use OVERLAY instead of BUILD? You'd need an extra field. If that means extending the record, you'll have the equivalent of a BUILD anyway, with extra messing about. |
|
Back to top |
|
|
Abid Hasan
New User
Joined: 25 Mar 2013 Posts: 88 Location: India
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
The records could be reformatted in INREC, OUTREC or OUTFIL. If OUTREC or OUTFIL aren't otherwise required, I always use INREC. |
|
Back to top |
|
|
Abid Hasan
New User
Joined: 25 Mar 2013 Posts: 88 Location: India
|
|
|
|
Completely agree Bill, INREC being the better choice, because of the DFSORT processing hierarchy. |
|
Back to top |
|
|
|