View previous topic :: View next topic
|
Author |
Message |
suneelv
New User
Joined: 26 Aug 2008 Posts: 52 Location: inida
|
|
|
|
Hi,
I want to retrieve values 11 and 1 starting from position 5 and length of 2. This is VB file.i have used following control card.
OPTION COPY
INCLUDE COND=((7,2,BI,EQ,11,OR,1)
i got the syntax error. please help me to retrieve 11 and 1 in starting position 3 and length of 2.
regards
suneel |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you are indicating Binary with the BI.
I imagine your constants, 11 and 1, are not coded as Binary Constants.
COBOL would be X'11' and X'01'.
I know that if your include condition was for CH (characters) the constants would be coded as C'11' and C'01'. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
suneelv,
Since you already have a topic in discussion for the same problem, you could have replied to the same rather than starting a new topic. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
The reason for the syntax error is that the INCLUDE statement is not coded correctly. Try this:
Code: |
INCLUDE COND=(7,2,CH,EQ,C'11',OR,
7,2,CH,EQ,C'01')
|
If you have access to SyncSort for z/OS 1.3, this can be simplified to the following:
Code: |
INCLUDE COND=(7,2,CH,EQ,L(C'11',C'01')) |
|
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
(sorry Gerry - I deleted your post by accident. But thanks for pointing out the extra paren. I made the correction in my previous post).
-Alissa |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
suneelv,
It was brought back to my attention that you originally stated that your data was binary. If that is the case, then you can specify the following:
Code: |
INCLUDE COND=(7,2,BI,EQ,11,OR,
7,2,BI,EQ,01)
|
|
|
Back to top |
|
|
|