View previous topic :: View next topic
|
Author |
Message |
amit_tater
New User
Joined: 22 Dec 2006 Posts: 9 Location: Indore
|
|
|
|
How can we use "Evaluate" in EZT? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi There,
We can use CASE in EASYTRIEVE
Like
Code: |
CASE SQLCODE
WHEN 0
PERFORM ABC-PARA
WHEN -811
PERFORM BCD-PARA
WHEN 100
PERFORM NOT-FOUND-FILE
OTHERWISE
STOP EXECUTE
END-CASE |
Hope it wil be helpful |
|
Back to top |
|
|
saiprasadh
Active User
Joined: 20 Sep 2006 Posts: 154 Location: US
|
|
|
|
Hi,
You can use the below statement for the Evaluate in the Eztrieve.
Case <variable name>
When
Statements
when
statements
otherwise
statements
End-case
Sai |
|
Back to top |
|
|
saiprasadh
Active User
Joined: 20 Sep 2006 Posts: 154 Location: US
|
|
|
|
Hi,
Sorry i missed the condition after when
The correct command is
Case <variable name>
When condition
Statements
when condition
statements
otherwise
statements
End-case
Sai |
|
Back to top |
|
|
|