View previous topic :: View next topic
|
Author |
Message |
chinnarajr
New User
Joined: 01 Jun 2007 Posts: 16 Location: Chennai
|
|
|
|
I have an input file (VB file of size 425).
purpose is to convert the input file to output FB ( length 425) file.
I need the JCL for the mentioned purpose using SYNCSORT.
Chinna. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
chinnarajr wrote: |
I have an input file (VB file of size 425).
purpose is to convert the input file to output FB ( length 425) file. |
Try this code:
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(5,421),CONVERT
|
|
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Oops, the length will be 421 in that example. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
If the output must be 425, then you can OUTREC the RDW with the data fields (1,4,5,421) or you can pad the last 4 bytes with blanks (5,421,4X). |
|
Back to top |
|
|
|