Page 1 of 1

Getting input variable from panels

PostPosted: Thu Dec 18, 2008 9:27 am
by atodpquery
If you use REXX to generate JCL and there is an input from the panel. After the JCL is generated and you run another REXX program and can you use PULL or VGET to get the input variable or VGET

Re: Getting input variable from panels

PostPosted: Fri Dec 19, 2008 7:57 pm
by Gilles
I'm note sure I understand your exact need but here's my take. If you run a REXX program that calls a panel with some variable defined in the panel, when control returns to the REXX after the user has interacted with the panel, all variables are available in the REXX. Simple as that.

If you need some of those variables in another REXX program altogether, you can store those values in the shared pool with a VPUT (varname) SHARED and get it back in the other REXX wit VGET (varname) SHARED. The SHARED pool is gone if the user logs off so if you need those variables across sessions, you should use the PROFILE pool.

Re: Getting input variable from panels

PostPosted: Wed Dec 31, 2008 2:48 am
by atodpquery
Thanks. It is clear now. :D