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 

Include statement error

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sri50131
Beginner


Joined: 07 Oct 2004
Posts: 38
Topics: 15

PostPosted: Fri Apr 01, 2005 4:45 pm    Post subject: Include statement error Reply with quote

Hello,

I have a file (VB) of length 9996. When I running the job, I am getting the following error:
Code:

WER250A PSR012IT,JSTEP010,        -INCLUDE/OMIT FIELD BEYOND RECORD

The Job is:
Code:

//JSTEP010 EXEC PGM=ICETOOL                                           
//TOOLMSG  DD SYSOUT=*                                               
//DFSMSG   DD SYSOUT=*                                               
//*                                                                   
//IN       DD DSN=ATEST.PRC009.PRLOSS.TEST,DISP=SHR                   
//*                                                                   
//OUT      DD DSN=ATEST.PSR012.PRLOSS.TEST.DUPESB,                   
//            UNIT=SYSDA,                                             
//            DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(1,1),RLSE)         
//*                                                                   
//T1       DD DSN=&T1,DISP=(,PASS),SPACE=(CYL,(1,1),RLSE)             
//SORTXSUM DD DSN=ATEST.PSR012.PRLOSS.TEST.DEDUPEDB,                 
//            UNIT=SYSDA,                                             
//            DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(1,1),RLSE)         
//TOOLIN   DD *                                                       
  SELECT FROM(IN) TO(OUT) ON(1,40,CH) USING(CTL1) -                   
  LAST DISCARD(SORTXSUM)                                               
//CTL1CNTL DD *                                                       
   INCLUDE COND=((39,3,CH,EQ,C'971'),AND,(228,10,CH,EQ,C'7012379555'))
/*                                                                   

Can someone please explain me what is the I am doing wrong?

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


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

PostPosted: Fri Apr 01, 2005 4:57 pm    Post subject: Reply with quote

sri50131,

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 to your job
Code:

//$ORTPARM DD *         
  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.

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
sri50131
Beginner


Joined: 07 Oct 2004
Posts: 38
Topics: 15

PostPosted: Fri Apr 01, 2005 5:06 pm    Post subject: Reply with quote

Kolusu, Thank you very much!
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 -> Job Control Language(JCL) 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