Previous Topic: Use Shared VariablesNext Topic: Program That Types the Account Number in Another Session


Program That Copies the Account Number

The following program defines the variable ACNTNUM in the current session, assigns it a value taken from the current screen, and calls the second ACL/E program to run in another session:

******* Program name: ACCOUNT1 *******
   UDEFINE ACNTNUM,6           define account number variable 
   SET ACNTNUM,&SCREEN(35,6)   set account number 
    ACLPGM T2,ACCOUNT2         call second program