Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts IMS error U4038 while executing my PL... abdulrafi IMS DB/DC 2 Thu Feb 08, 2018 1:05 pm
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us