Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How can we use "Evaluate" in EZT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: How can we use "Evaluate" in EZT
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: 1187
Location: Bangalore,India

PostPosted: Tue Mar 13, 2007 1:42 pm    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Amount field is getting corrupted whe... thesumitk SYNCSORT 5 Tue Oct 18, 2016 8:20 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts Multi row fetch - "for read only... Nileshkul DB2 3 Sun Aug 14, 2016 12:52 am
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm
No new posts Need to show date in "DYYMMDD.TH... deepak_shrivastava DFSORT/ICETOOL 2 Tue Jan 05, 2016 7:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us