Different forms of Case -when (loop handling) in Eazytrieve

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
Avani
Member
Posts: 2
Joined: Wed Apr 04, 2007 4:34 pm

Different forms of Case -when (loop handling) in Eazytrieve

Post by Avani » Thu Apr 05, 2007 3:46 pm

I would like to know what are the different forms or syntax for
"Case -when (loop handling)" in Eazytrieve

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Apr 05, 2007 8:16 pm

Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Veera
Moderator
Posts: 111
Joined: Wed Feb 22, 2006 2:59 pm

Post by Veera » Thu Apr 05, 2007 8:25 pm

Avani,

You mean the CASE statement in EZT. or all the looping syntaxs.

Well here is the syntax for CASE

Code: Select all


*                                                                       
*         CHOCIE -> CHOCIE IS NUMERIC THEN WHEN 1                       
*         CHOCIE -> CHOCIE IS ALPHA NUMERIC THEN WHEN '1'               
*                                                                       
          CASE CHOCIE -> CHOCIE 
               WHEN  1                                                  
                     DISPLAY ' CHOCIE 1 IS SELECTED '                   
               WHEN  2                                                  
                     DISPLAY ' CHOCIE 2 IS SELECTED '                   
               OTHERWISE                                                
                     DISPLAY ' INVALID CHOCIE SELECTED '                
          END-CASE.                                                     

Thanks and Regards,
Veera.

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 1:34 am

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others