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
 
How many when conditions can be used with SEARCH ALL...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How many when conditions can be used with SEARCH ALL...
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: 8201
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 09, 2009 10:48 pm    Post subject:
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: 6970
Location: porcelain throne

PostPosted: Tue Jun 09, 2009 10:59 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TBSARG - Deleting the search criteria... ISPFHerc TSO/ISPF 5 Thu Dec 14, 2017 8:18 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm

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