Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cobol EVALUATE

Status
Not open for further replies.

jtwo

Programmer
Joined
Apr 26, 2006
Messages
2
Location
US
Hi,

Can someone tell me how you interpret the code when there are stacked "WHEN"s with no "action" statements after them (i.e, "PERFORM"s ,etc.) in an EVALUATE TRUE statement ?
Are they to be interpreted as "OR" conditions ? For example, how would the example below be interpreted:


EVALUATE TRUE
WHEN NOT field1
WHEN field2
WHEN field3
WHEN field4
WHEN field5 = '1'
CONTINUE
WHEN TRANS-DATE > CURRENT-DATE
PERFORM....
|
|
|
|
END-EVALUATE

Thanks very much !
jtwo
 
Are they to be interpreted as "OR" conditions
Exactly.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Presumably field1 through field4 are actually condition-names (i.e. defined with an 88 level), correct?

Tom Morrison
 
Thanks very much PH, and Tom yes those are 88 level fields.
Jtwo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top