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

How can we use "Evaluate" in EZT


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amit_tater

New User


Joined: 22 Dec 2006
Posts: 9
Location: Indore

PostPosted: Tue Mar 13, 2007 12:01 pm
Reply with quote

How can we use "Evaluate" in EZT?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Mar 13, 2007 1:42 pm
Reply with quote

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
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Tue Mar 13, 2007 1:54 pm
Reply with quote

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
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Tue Mar 13, 2007 1:56 pm
Reply with quote

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
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
No new posts Using PARM=('JPn"&SYMBOL&quo... DFSORT/ICETOOL 2
Search our Forums:

Back to Top