View previous topic :: View next topic
|
Author |
Message |
srinivas_443
New User
Joined: 19 Dec 2007 Posts: 11 Location: chennai
|
|
|
|
Hi all,
Please explain Perform with evaluate statement?
Regards,
Srinivas Jala |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Srinivas,
Please go through the manual by tab top of this page & let us know if u need ne clarification |
|
Back to top |
|
|
futuremsk
New User
Joined: 20 Dec 2007 Posts: 10 Location: chennai
|
|
|
|
In it's simplest form the EVALUATE statement goes something like this:
EVALUATE condition
WHEN value
imperative-statements
WHEN value
imperative statements
...........
END-EVALUATE.
Here's a simple example:
EVALUATE WS-X
WHEN 1
ADD 15 TO WS-TOTAL
PERFORM A-100-REPORT
WHEN 2
ADD 16 TO WS-TOTAL
MOVE 'WS-X IS 2' TO WS-DISPLAY
PERFORM A-200-REPORT
WHEN OTHER
PERFORM X-100-ERROR
END-EVALUATE.
I think this will solve your doubt |
|
Back to top |
|
|
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
|
|
|
|
EVALUATE <condition>
WHEN <first condition>
PERFORM FIRST-CONDITION-PARA
WHEN <second condition>
PERFORM SECOND-CONDITION-PARA
WHEN <third condition>
PERFORM THIRD-CONDITION-PARA
WHEN OTHER
PERFORM OTHER-PARA
END-EVALUATE.[/quote][/list][/code] |
|
Back to top |
|
|
|