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

Handle less than or equal to condition in search all


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

New User


Joined: 06 Mar 2006
Posts: 50
Location: PUNE

PostPosted: Wed May 07, 2008 9:56 am
Reply with quote

Hi All,

Please help me how to handle less than or equal to condition in search all.

SEARCH ALL GROSS-DISC-TBLE
AT END
MOVE 'N' TO GROSS-DISC-ENTRY
WHEN FFH-SEQUENCE-NUMBER = GRS-FEE-SEQ (GRS-IDX)
AND FFH-TABLE-RECID = GRS-FEE-RECID (GRS-IDX)
AND GRS-FEE-PROD (GRS-IDX) >= 75
MOVE 'Y' TO GROSS-DISC-ENTRY
END-SEARCH.
Back to top
View user's profile Send private message
nabarundas

New User


Joined: 21 Jun 2007
Posts: 28
Location: pune

PostPosted: Wed May 07, 2008 10:47 am
Reply with quote

Hi Anand78,

Quote:
AND GRS-FEE-PROD (GRS-IDX) >= 75


We can't use '>=' in SEARCH ALL only we can use '=' . If your requirement is to use '>=' then go for SEARCH not SEARCH ALL.

Regards
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Wed May 07, 2008 12:15 pm
Reply with quote

Anand78 wrote:
Hi All,

Please help me how to handle less than or equal to condition in search all.

SEARCH ALL GROSS-DISC-TBLE
AT END
MOVE 'N' TO GROSS-DISC-ENTRY
WHEN FFH-SEQUENCE-NUMBER = GRS-FEE-SEQ (GRS-IDX)
AND FFH-TABLE-RECID = GRS-FEE-RECID (GRS-IDX)
AND GRS-FEE-PROD (GRS-IDX) >= 75
MOVE 'Y' TO GROSS-DISC-ENTRY
END-SEARCH.


Anand pls refer this publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/IGYL1101/3.30?DT=19930312093006
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 first column truncated in search result IBM Tools 13
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts To search DB2 table based on Conditio... DB2 1
Search our Forums:

Back to Top