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 Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Amount field is getting corrupted whe... thesumitk SYNCSORT 5 Tue Oct 18, 2016 8:20 pm


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