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 Error U0016

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT Error U0016
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: Chennai

PostPosted: Wed Oct 03, 2007 2:24 pm    Post subject: Reply to: SYNCSORT Error U0016
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

Moderator Team Head


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

PostPosted: Wed Oct 03, 2007 2:31 pm    Post subject: Reply to: SYNCSORT Error U0016
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

Senior Member


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

PostPosted: Wed Oct 03, 2007 3:22 pm    Post subject:
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    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Oct 03, 2007 6:07 pm    Post subject: Reply to: SYNCSORT Error U0016
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

Senior Member


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

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

Hi,

Were you using VB files?
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 Oct 03, 2007 6:22 pm    Post subject:
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    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 DB2 Program abending without giving a... rahulgarg14 DB2 3 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm


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