MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Syncsort Failing while SORT for VB File

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Mon Aug 31, 2009 1:40 pm    Post subject: Syncsort Failing while SORT for VB File Reply with quote

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

DATA:
Code:

----+----1--
************
S.AAAAAAAAAA
S.AAAAAAAAAA
S.BBBBBBBBBB
S.BBBBBBBBBB
.
.
.
.
Back to top
View user's profile Send private message
Brian Wood
Beginner


Joined: 14 Jan 2009
Posts: 37
Topics: 0
Location: USA

PostPosted: Mon Aug 31, 2009 4:09 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group