IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SYNCSORT Error U0016


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lekshmi_ci

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Wed Oct 03, 2007 2:08 pm
Reply with quote

I need to sort a file with some fields in ascending order. Then i need to include only the records with status 'C'

Is there any syntax error in this control card definition.
Assume the positions and length are correct

SORT FIELDS=(1,2,CH,A,3,9,ZD,A,10,10,ZD,A), sort conditions
INCLUDE COND=(11,11,CH,EQ,C'C') status = 'c'

i am getting abend U0016.

Thanks
LC
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Wed Oct 03, 2007 2:24 pm
Reply with quote

Code:
INCLUDE COND=(11,11,CH,EQ,C'C') status = 'c'


I think you want 11 th character as "C" alone to be included in the output file
If so, then code as
Code:
INCLUDE COND=(11,1,CH,EQ,C'C')
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Oct 03, 2007 2:31 pm
Reply with quote

LC, why don't you post all of the output from your SYSOUT DD.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Oct 03, 2007 3:22 pm
Reply with quote

Quote:
LC, why don't you post all of the output from your SYSOUT DD.

& a bit of your input data & the expected output as well with the JCL used.
Back to top
View user's profile Send private message
lekshmi_ci

New User


Joined: 14 Mar 2007
Posts: 60
Location: Thiruvananthapuram

PostPosted: Wed Oct 03, 2007 3:27 pm
Reply with quote

Hi all,

Thanks for the replies.
Since the record format was VB, it was the problem of 4 bits.
I added 4 bits to each field and is now working fine.
Thanks a lot once more.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Oct 03, 2007 6:07 pm
Reply with quote

Quote:
I added 4 bits to each field and is now working fine.


4 bits??????
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Oct 03, 2007 6:19 pm
Reply with quote

Hi,

Were you using VB files?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Oct 03, 2007 6:22 pm
Reply with quote

Hello,

Quote:
I added 4 bits to each field
I suspect a typo - that would be 4 bytes.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top