Previous Topic: Switch Sessions in an ACL/E ProgramNext Topic: Manage Errors


ZCONN Variable

The variable ZCONN contains the session ID of the current session. You can use this variable to make sure the session switch was successful. For example, the following statements switch to the session VM2 and then check to make sure the session switch was successful before starting an ACL/E program:

         COMMAND 'VM2'           SWITCH TO THE VM APPLICATION 
         WAIT 1                  GIVE THE SESSION TIME TO START 
         COMPARE '&ZCONN','VM2'  DID WE SWITCH SESSIONS?
         BRANCH NE,FAILED        IF NOT, STOP THE PROGRAM 
         COMMAND 'S VM2 VMACL'   START PROGRAM 'VMACL' IN VM2 
FAILED   STOP