Posted: Mon Aug 31, 2009 1:40 pm Post subject: Syncsort Failing while SORT for VB File
I have a VB file of length 1064 bytes.I am trying to include records from the file which starts from position 3 rd and I am failing to create my output dataset , basically I want to write the data from 3 rd pos and for a length of 10 bytes.I am getting error message: WER235A.
Code:
//SYSIN DD *
SORT FIELDS=(7,10,CH,A)
SUM FIELDS=NONE
OUTREC FIELDS=(5:7,10)
/*
WER108I SORTIN : RECFM=VB ; LRECL= 1064; BLKSIZE= 23476
WER235A OUTREC RDW NOT INCLUDED
OR
Code:
//SYSIN DD *
SORT FIELDS=(3,10,CH,A)
SUM FIELDS=NONE
OUTREC FIELDS=(5:3,10)
/*
WER108I SORTIN : RECFM=VB ; LRECL= 1064; BLKSIZE= 23476
WER235A OUTREC RDW NOT INCLUDED
Joined: 14 Jan 2009 Posts: 37 Topics: 0 Location: USA
Posted: Mon Aug 31, 2009 4:09 pm Post subject:
yadav2005:
If you want the output to be variable length, you must also specify the RDW in your OUTREC statement. From what you describe it sounds like you want fixed-length output; if so, you must use something like the CONVERT subparameter, as in the following example:
Code:
//SYSIN DD *
SORT FIELDS=(7,10,CH,A)
SUM FIELDS=NONE
OUTREC FIELDS=(7,10),CONVERT
Please also note that your SORT control statement must allow for the 4-byte RDW when processing variable-length data (in other words, the first data position is position 5).
Please let me know if I may be of further assistance. _________________ Brian Wood
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
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