Examples

In a CLIST, copy from the shared pool to the function pool values for variables whose names are listed in variable VARLIST.
ISPEXEC VGET (&VARLIST) SHARED
In a PL/I program, VARLIST contains a list of variable names. Copy values for these variables from the shared pool to the function pool. The variable VARLIST has been made accessible to ISPF by a previous VDEFINE operation. Set the program variable BUFFER to contain:
VGET (&VARLIST) SHARED
Set program variable BUFLEN to the length of the variable BUFFER. Issue the command:
CALL ISPEXEC (BUFLEN, BUFFER);

or alternately

CALL ISPLINK ('VGET    ',VARLIST,'SHARED  ');
In a CLIST, obtain the current value for the dynamic system variable LHHMMSS:
ISPEXEC VGET (LHHMMSS) SYMDEF
In a REXX exec, obtain the current values for the static symbols SYSNAME and SYSR1:
'VGET (SYSNAME SYSR1) SYMDEF'
In a REXX exec, obtain the current values for the dynamic symbols HHMMSS and LHHMMSS. Also obtain the current value for the static symbol SYSCLONE and store it in a variable named cl:
'VGET (cl hhmmss lhhmmss) SYMDEF SYMNAMES(sysclone)'