View previous topic :: View next topic
|
Author |
Message |
lekshmi_ci
New User
Joined: 14 Mar 2007 Posts: 60 Location: Thiruvananthapuram
|
|
|
|
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 |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
LC, why don't you post all of the output from your SYSOUT DD. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
lekshmi_ci
New User
Joined: 14 Mar 2007 Posts: 60 Location: Thiruvananthapuram
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Quote: |
I added 4 bits to each field and is now working fine. |
4 bits?????? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Were you using VB files? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I added 4 bits to each field |
I suspect a typo - that would be 4 bytes. |
|
Back to top |
|
|
|