by MrSpock » Wed May 28, 2008 4:56 pm
Any variables used in the panel definition are available in the shared variable pool, and are accessible by the application program. One advantage of using CLIST or REXX to call a panel definition is that both languages can directly access ISPF variables and can treat them as a native variable.
For example, if a panel has a field designated as input:
)ATTR
% TYPE(TEXT) INTENS(HIGH)
+ TYPE(TEXT) INTENS(LOW)
_ TYPE(INPUT) INTENS(HIGH) PAD('_')
# TYPE(OUTPUT) INTENS(LOW) PAD(' ')
)BODY
...
+Enter Your Name%=>_myname +
....
You can directly use the variable "myname" in your REXX exec:
/* REXX */
Do Forever
"ISPEXEC DISPLAY PANEL(MYPANEL)"
If rc <> 0 Then Leave
End
Say myname
- These users thanked the author MrSpock for the post:
- georges (Fri Feb 22, 2019 5:50 am)