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 

WER244A error while using syncsort

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


Joined: 08 Apr 2006
Posts: 4
Topics: 2

PostPosted: Thu Dec 14, 2006 10:43 am    Post subject: WER244A error while using syncsort Reply with quote

Hi my requirement is just to modify the output rec before writing into file
i am using following jcl

input file length is BPV344.FIRE.FOLIO (9496) variable length file

Code:

//SORT02   EXEC PGM=SYNCSORT                                     
//SORTLIB  DD   DSN=SYS1.SORTLIB,DISP=SHR                         
//SYSPRINT DD  SYSOUT=*                                           
//*                                                               
//SORTIN DD  DSN=BPV344.FIRE.FOLIO,DISP=SHR                       
//*                                                               
//SORTOUT  DD DSN=BPV344.FIRE.FOLIO.SORT,                         
//            DISP=(NEW,CATLG,DELETE),                           
//            UNIT=SYSDA,                                         
//            SPACE=(CYL,(100,100),RLSE)                         
//SYSIN  DD  *                                                   
  SORT FIELDS=(90,09,CH,A)                                       
  INCLUDE COND=(1,1,CH,EQ,C'0',OR,218,1,CH,NE,C'R')               
  OUTREC FIELDS=(01,04,05,90,91,09,ZD,EDIT=(II-II-IIIII),100,9397)
/*                                                               

ERROR:-

+wER108I BPV344D ,SORT02,-SORTIN:RECFM=VB;LRECL=  9496; BLKSIZE= 27998

+WER237I BPV344D ,SORT02,-OUTREC RECORD LENGTH =  9502       

+WER110I BPV344D ,SORT02,-SORTOUT:RECFM=VB;LRECL=  9502; BLKSIZE= 27998


i am unable to figure out whats going wrong. please help me

Thanks in advance
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Dec 14, 2006 10:57 am    Post subject: Reply with quote

durgaprasad.chavali,

Your Input file is a variable block file. So you need no specify the length on outrec. You just need to specify the start position. For VB files the actual data starts from position 5 as the first 4 bytes will be occupied by rdw (Record Descriptor Word). So your include and sort fields also need to change (unless you already accounted for RDW)

Try this job.

Code:

//SORT02  EXEC PGM=SYNCSORT
//SORTLIB DD DSN=SYS1.SORTLIB,DISP=SHR
//SORTIN  DD DSN=BPV344.FIRE.FOLIO,
//           DISP=SHR
//*
//SORTOUT DD DSN=BPV344.FIRE.FOLIO.SORT,
//           DISP=(NEW,CATLG,DELETE),
//           UNIT=SYSDA,
//           SPACE=(CYL,(100,100),RLSE)
//SYSIN   DD *
  SORT FIELDS=(94,09,CH,A)
  INCLUDE COND=(005,01,CH,EQ,C'0',OR,222,01,CH,NE,C'R')
  OUTREC FIELDS=(01,04,
                 05,90,
                 95,09,ZD,EDIT=(II-II-IIIII),
                 104)
/*


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
durgaprasad.chavali
Beginner


Joined: 08 Apr 2006
Posts: 4
Topics: 2

PostPosted: Fri Dec 15, 2006 12:13 am    Post subject: Reply with quote

Very Happy Thanks a lot Kolusu
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