View previous topic :: View next topic
|
Author |
Message |
Kamlesh Kamal
New User
Joined: 16 May 2008 Posts: 36 Location: Kolkata,India
|
|
|
|
Hi,
I need to put a particular column of an I/P file to a new file (from 201th column of length 6 )
I am using the below SYSIN for the sort card but getting an error.
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(1:201,6)
/* |
error
Code: |
WER235A INREC RDW NOT INCLUDED |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
1) This is SYNCSORT so should be posted in the JCL forum.
2) The error message tells you exactly what the problem is. Have you bothered to read the product documentation for yourself. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
Kamlesh,
Assuming your original input file was variable length and you want a variable length output file, then you can code the following:
Code: |
//SYSIN DD *
INREC FIELDS=(1,4,5:201,6)
SORT FIELDS=COPY
/* |
However, if you want a fixed-length output file, then you can code this instead:
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(201,6),CONVERT
/* |
or
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(201,6),VTOF
/* |
|
|
Back to top |
|
|
|