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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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