Example 3

On the ISPF primary option panel the user issues the command SCRNAME POP. The primary option panel's screen name is now POP. The user then invokes CLIST2.
CLIST2
   PROC 0
   SET &ZSCRNAME = STATE
   ISPEXEC VPUT (ZSCRNAME) SHARED
   ISPEXEC SELECT PANEL(MENUA) SCRNAME(NATION)
   ISPEXEC DISPLAY PANEL(PANELA)

After the CLIST processes, the following results occur:

  1. MENUA displays with screen name NATION.
  2. PANELA displays with the screen name STATE.
  3. End from PANELA and the primary option panel displays with screen name POP.