Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SYNCSORT OMIT condition execution error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
unmesh33

New User


Joined: 19 Dec 2007
Posts: 6
Location: Pune

PostPosted: Wed Sep 10, 2008 5:38 pm    Post subject: SYNCSORT OMIT condition execution error
Reply with quote

Hi,
I am trying to give the following condition while using syncsort

SORT FIELDS=COPY
OMIT COND=(142,2,CH,EQ,C'07')

However I am getting an user abend U0016 and joblog is giving below message

INSERT 0, DELETE 0
INCLUDE/OMIT FIELD BEYOND RECORD
SYNCSMF CALLED BY SYNCSORT; RC=0000
SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE

Can anyone please help me to figure this out.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 10, 2008 5:39 pm    Post subject:
Reply with quote

What are the file attributes for SORTIN
Back to top
View user's profile Send private message
unmesh33

New User


Joined: 19 Dec 2007
Posts: 6
Location: Pune

PostPosted: Wed Sep 10, 2008 6:54 pm    Post subject:
Reply with quote

Hi,
Below are the file attributes.

Organization . . . : PS
Record format . . . : VB
Record length . . . : 2472
Block size . . . . : 27998

Please let me know if you required any more information.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 10, 2008 7:05 pm    Post subject:
Reply with quote

Are there any options in SYNCSORT to allow for the fact that some records may be shorter than the position of the compare field, as DFSORT has

OPTION VLSCMP VLSHRT
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Sep 10, 2008 8:44 pm    Post subject:
Reply with quote

Hello,

There may be something useful here (near the end of the second page):
http://ibmmainframes.com/viewtopic.php?t=18206
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Sep 11, 2008 12:42 am    Post subject:
Reply with quote

Hi,

per me, this
Code:
INCLUDE/OMIT FIELD BEYOND RECORD
is the main error, are you sure the file used in JCL, which was abended, has the LRECL=2472 ? it's confusing..probablly i won't agree. it must be less than 142.
Back to top
View user's profile Send private message
harinadh

New User


Joined: 01 Sep 2004
Posts: 18

PostPosted: Thu Sep 11, 2008 1:53 am    Post subject: Reply to: SYNCSORT OMIT condition execution error
Reply with quote

CAN U TRY USING OMIT COND WITH 146 POSITION INSTEAD OF 142 POSITION.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Sep 11, 2008 2:42 am    Post subject:
Reply with quote

Hello,

I believe this is going far away from the actual problem. . .

The most likely cause is the first short record in the vb file.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 11, 2008 11:30 am    Post subject:
Reply with quote

I think that the OP has worked it out now, but can not be asked to return to the forum.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Sep 11, 2008 10:29 pm    Post subject: Re: Reply to: SYNCSORT OMIT condition execution error
Reply with quote

harinadh wrote:
CAN U TRY USING OMIT COND WITH 146 POSITION INSTEAD OF 142 POSITION.
Unless we are sure about the LRECL..Including 4 for RDW would not make any difference in the output..
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Sep 11, 2008 10:35 pm    Post subject:
Reply with quote

Hi Dick,
dick scherrer wrote:
The most likely cause is the first short record in the vb file.
Unless i misunderstood..I doubt this would create any problem, if record is short it would not qualify for the criteria of OMIT COND & would not be selected for the output..
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Sep 11, 2008 11:27 pm    Post subject:
Reply with quote

Hi Anuj,

Quote:
if record is short it would not qualify for the criteria of OMIT COND & would not be selected for the output..
I believe not. . .

If the record is short, it will cause the "INCLUDE/OMIT FIELD BEYOND RECORD" error. The compare will fail as it is beyond the end of the record. Unless it is provided for. . . See the link above.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Sep 12, 2008 12:34 am    Post subject:
Reply with quote

Dick,

I used the below JCL:
Code:
//STEP120 EXEC PGM=SORT,               
//             REGION=1024K           
//SORTIN   DD  DSN=HLQ.FIRST.FILE.VB, 
//             DISP=SHR               
//SORTOUT  DD  SYSOUT=*               
//*                                   
//SYSOUT   DD  SYSOUT=*               
//SYSPRINT DD  SYSOUT=*               
//*                                   
//SYSIN    DD  *                       
    OPTION COPY                       
    INCLUDE COND=(29,01,CH,EQ,C'A')   
//*                                   

contents of HLQ.FIRST.FILE.VB are:
Code:
111 A$$$$345   
222 AAAAA12324
444 FFFFF455   
555 GGGGG1     
888 CCCCC12   

with the RDW statistics
Code:
  16 |111 A$$$$345 
  18 |222 AAAAA12324
  16 |444 FFFFF455 
  14 |555 GGGGG1   
  15 |888 CCCCC12   
LRECL is 80.

JOB was ended with successful completion,RC=0 & there was no record in the output.

In the above JOB when control card was changed to:
Code:
//SYSIN    DD  *               
    OPTION COPY                 
    OMIT COND=(89,01,CH,EQ,C'A')
it was abended with
Code:
WER250A  INCLUDE/OMIT FIELD BEYOND RECORD
while same JOB give this output:
Code:
444 FFFFF455
555 GGGGG1   
888 CCCCC12 
when this
Code:
//SYSIN    DD  *                 
    OPTION COPY                 
    OMIT COND=(9,01,CH,EQ,C'A') 
control card was used.

Please advise.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Sep 12, 2008 1:06 am    Post subject:
Reply with quote

Hi Anuj,

Your Syncsort environment has been set up to automatically handle short records.

Not every system is. . .
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Sep 12, 2008 2:10 am    Post subject:
Reply with quote

hmmm.. these shop specific things are going to kill me some day..
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2158
Location: @my desk

PostPosted: Mon Sep 15, 2008 2:14 pm    Post subject:
Reply with quote

Anuj,

Just thought of sharing some info. I tried executing exactly the same jcl and input records as yours, but failed with RC=16 showing the below error.
Code:
WER250A  INCLUDE/OMIT FIELD BEYOND RECORD

and the same job went thru fine with RC=0 giving when I modified the card as
Code:
//SYSIN    DD *                 
  OPTION COPY,VLSHRT             
  INCLUDE COND=(29,01,CH,EQ,C'A')

VLSHRT specifies that records that are too short to contain all of the INCLUDE compare fields are not to be included in the output data set.
Though VLSHRT is a DFSORT option it works with Syncsort as well.

Alternatively, you can specify the VLTESTI parameter in SYNCSORT to handle short records in INCLUDE/OMIT as below.
Code:
//STEP01   EXEC PGM=SORT,PARM='VLTESTI=1'


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.

Thanks,
Arun
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 1 Fri Dec 02, 2016 9:47 am
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us