Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 8057
Location: East Dubuque, Illinois, 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: 6967
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 Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm
No new posts DFSORT report with multiple conditions Bill Woodger DFSORT/ICETOOL 9 Wed Jan 20, 2016 2:19 am
No new posts Copy one PDS to another PDS based on ... alluri12 JCL & VSAM 10 Tue Sep 29, 2015 8:10 pm
No new posts Search and replace the key in the report V S Amarendra Reddy SYNCSORT 1 Thu Jul 09, 2015 7:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us