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 

variable length to Fxed length

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


Joined: 05 Apr 2006
Posts: 7
Topics: 3

PostPosted: Wed May 16, 2007 4:26 pm    Post subject: variable length to Fxed length Reply with quote

Hi,

I am trying to convert a variable length file to a fixed file format using SYNCSORT(I have to use this only and thats my restriction). Here is the sort card which does that but with some problems
Code:

SORT FIELDS=(107,14,CH,A)           
OUTFIL OUTREC=(1:1,286),           
CONVERT,                           
INCLUDE=(29,8,CH,EQ,C'VKXEVN0T',AND,
         142,5,CH,EQ,C'18   ')     

Problems:
WER250A SORTOUT INCLUDE/OMIT FIELD BEYOND RECORD
The problem is obviously because of some recoerd which has length smaller than 142 or may be smaller than 29.

I would like to have a single sort step which does the filtering using INCLUDE statement above and which would convert the vb file to a fb file. I think if we can find out a way in which the record is converted to a fixed length record of 286 padded with spaces by using INREC, the INCLUDE statement wouldnt face this problem. Pls let me know if there is a way to do this.

Thanks!
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Wed May 16, 2007 5:19 pm    Post subject: Reply with quote

There is a parameter that lets you decide that if the include condition is beyond the current lrecl, to make it true or false or ignore it...
Do you have a manual?
If your site (email address) is licensed for Syncsort, email their support at:
SyncSort Mainframe Support
201.930.8260
zos_tech@syncsort.com
and ask for the manual.

At this point, I am half asleep, in the morn, I'll look up the parameter and post it...If somebody does not first...
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed May 16, 2007 6:18 pm    Post subject: Reply with quote

chandrasekhar.a,

You are getting WER250A error because your input file is a variable block file and it may some shor records , so the validation of the include/omit condition fails.

Add this parm to your job
Code:

//STEP0100 EXEC PGM=SORT,PARM='VLTESTI=1'



VLTESTI specifies to SyncSort how to process variable-length records that do not contain all specified INCLUDE or OMIT fields. VLTESTI applies to both regular and OUTFIL INCLUDE/OMIT processing.

The delivered default of 0 instructs SyncSort to terminate if a record does not completely contain all INCLUDE or OMIT fields. A WER250A critical error message is generated to indicate this condition.

When VLTESTI=1 is specified, a record that does not completely contain all INCLUDE/ OMIT fields is treated as having failed the comparison. SyncSort will omit the record if INCLUDE is being used or include the record if OMIT has been specified.

When VLTESTI=2 is specified, SyncSort will treat comparisons to fields not completely contained within the record as false and decide a record's status for inclusion or omission from fields that are available. If all fields are not present, the record will be processed as having failed the comparison. SyncSort will omit the record if INCLUDE is being used or include the record if OMIT has been specified.

http://www.mvsforums.com/helpboards/viewtopic.php?p=33373#33373

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chandrasekhar.a
Beginner


Joined: 05 Apr 2006
Posts: 7
Topics: 3

PostPosted: Wed May 16, 2007 9:20 pm    Post subject: Reply with quote

Thanks all! I really appeciate ur answers!
Back to top
View user's profile Send private message
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