Page 1 of 1

Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 1:45 pm
by shuzzeus
How can I call any ISPF panel from REXX?
EX. I want to call Data set list utility Panel (3.4)

Thanks

Re: Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 2:59 pm
by Akatsukami
ADDRESS ISPEXEC "DISPLAY PANEL(panel-id)", same as for any other panel.

Re: Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 4:00 pm
by prino
Except for the fact that, in this case, the panel itself is probably useless.
"ISPEXEC SELECT PGM(ISRUDL) PARM(ISRUDLP) SCRNAME(DSLIST)"

might be more appropriate.

Re: Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 4:03 pm
by shuzzeus
With this we can call those only panels which exist in same dataset.

Re: Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 4:14 pm
by shuzzeus
"ISPEXEC SELECT PGM(ISRUDL) PARM(ISRUDLP) SCRNAME(DSLIST)"

Does work. Thank you.
From where can I get the name of screens, I want to call "S Utilities" Standard functions?

Re: Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 4:38 pm
by prino
The PANELID command.

Re: Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 4:55 pm
by Akatsukami
prino wrote:Except for the fact that, in this case, the panel itself is probably useless.

Quite. But the TS didn't ask, "How can I execute the ISPF data set utility?", heesh asked, "How can I display an ISPF panel from Rexx?" Of course, there's always the chance that he would have figured out what heesh was doing wrong.

Re: Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 5:18 pm
by shuzzeus
"ISPEXEC SELECT PGM(ISRUDL) PARM(ISRUDLP) SCRNAME(DSLIST)"

From where can I get PGM name?

Re: Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 5:25 pm
by enrico-sorichetti
From where can I get PGM name?


why do You want reinvent the wheel,
what is the value of duplicating the ISPF behavior

for proper behavior and portability You should use ONLY
the constructs defined as user interfaces and described in the ISPF manuals
invoking the ISRUDL program is not one of them
using the constructs found in the IBM/ISPF provided panels and not documented in the manuals
is usually counterproductive

start from the mother of all the manuals
http://www-03.ibm.com/systems/z/os/zos/ ... index.html
and navigate to the bookshelf for the zOS level You are using

Re: Call ISPF Panel from Rexx

PostPosted: Wed Oct 24, 2012 7:24 pm
by Pedro
From where can I get PGM name?


Look at the source for panel ISRUTIL (ISPF option 3 menu). You can see how the sub-options are called.

You can also get many clues from looking at the ISPF command table. Use ISPF option 3.9 with application ID of ISP.