Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display stem. Variables on an ISPF Panel

Status
Not open for further replies.

LouPelagalli

Programmer
Sep 24, 2001
6
US
Hi,

Is there a way to display a stem. variable on an ISPF Panel and use the ZVARS = function?

I can display stem.1 stem.2 ... directly on the panel, but when I change the name to Z and use ZVARS = '(STEM.1 STEM.2)' I receive a message that the ZVARS must be alpha or numberic, so it's probably complaining about the '.'.

Thank You In Advance for Your Help,

Lou
 
Hi Lou,

stems you cannot use inside a panel. if you create the stem by execio you could code
"execio * diskr dd (stem data finis"
you will have variables data1, data2 (not data.1..) which you can use in panels but to inicate them in rexx you have to use INTERPRET or VALUE(). another solution is:

panvars=
do i=1 to data.0
interpret "DATA"i "= data.i"
panvars = panvars "DATA"i
end

after you can use DATA1, DATA2 (or &DATA1 in panels). and for assignementsin the panel code:
.zvars='&panvars'

Did you think about dynamic areas inside the panels? if not, read something about it.

best regards
Heinz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top