View previous topic :: View next topic
|
Author |
Message |
bijoybabu83
New User
Joined: 15 Jan 2007 Posts: 36 Location: Kerala
|
|
|
|
Hi I have a question on SEARCH ALL statement in Cobol.
Could somebody let me know how many when conditions can we put with search all.
If answer is 'one', Can you please let me know why.. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
There's a manual link at the top of the page. What does the Language Reference manual tell you? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
Could somebody let me know how many when conditions can we put with search all. |
'one'
Quote: |
If answer is 'one', Can you please let me know why. |
well, that's how they wrote it. See Format 2.
Probably because if you are searching the table, you are searching for one
(or more than one related things - the AND is part of the WHEN syntax)
thing.
There is only the EQUAL condition allowed - either it is there or it isn't.
If you are trying to get an OR, you need multiple SEARCH ALL statements;
one for each of your different OR conditions.
but, enough guessing on my part why you asked the question.
If it was just a theoretical question, I don't care,
but if you have a specific requirement, state the requirement and someone maybe able to offer a solution. |
|
Back to top |
|
|
|