IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How many when conditions can be used with SEARCH ALL...


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bijoybabu83

New User


Joined: 15 Jan 2007
Posts: 36
Location: Kerala

PostPosted: Tue Jun 09, 2009 10:16 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 09, 2009 10:48 pm
Reply with quote

There's a manual link at the top of the page. What does the Language Reference manual tell you?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jun 09, 2009 10:59 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts How to load to DB2 with column level ... DB2 6
No new posts first column truncated in search result IBM Tools 13
No new posts Db2 SQL - how to switch among differe... DB2 18
Search our Forums:

Back to Top