Call ISPF Panel from Rexx



IBM's Command List programming language & Restructured Extended Executor

Call ISPF Panel from Rexx

Postby shuzzeus » Wed Oct 24, 2012 1:45 pm

How can I call any ISPF panel from REXX?
EX. I want to call Data set list utility Panel (3.4)

Thanks
shuzzeus
 
Posts: 8
Joined: Wed Feb 01, 2012 7:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Call ISPF Panel from Rexx

Postby Akatsukami » Wed Oct 24, 2012 2:59 pm

ADDRESS ISPEXEC "DISPLAY PANEL(panel-id)", same as for any other panel.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Call ISPF Panel from Rexx

Postby prino » Wed Oct 24, 2012 4:00 pm

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.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 640
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

Re: Call ISPF Panel from Rexx

Postby shuzzeus » Wed Oct 24, 2012 4:03 pm

With this we can call those only panels which exist in same dataset.
shuzzeus
 
Posts: 8
Joined: Wed Feb 01, 2012 7:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Call ISPF Panel from Rexx

Postby shuzzeus » Wed Oct 24, 2012 4:14 pm

"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?
shuzzeus
 
Posts: 8
Joined: Wed Feb 01, 2012 7:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Call ISPF Panel from Rexx

Postby prino » Wed Oct 24, 2012 4:38 pm

The PANELID command.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 640
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

Re: Call ISPF Panel from Rexx

Postby Akatsukami » Wed Oct 24, 2012 4:55 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Call ISPF Panel from Rexx

Postby shuzzeus » Wed Oct 24, 2012 5:18 pm

"ISPEXEC SELECT PGM(ISRUDL) PARM(ISRUDLP) SCRNAME(DSLIST)"

From where can I get PGM name?
shuzzeus
 
Posts: 8
Joined: Wed Feb 01, 2012 7:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Call ISPF Panel from Rexx

Postby enrico-sorichetti » Wed Oct 24, 2012 5:25 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3002
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Call ISPF Panel from Rexx

Postby Pedro » Wed Oct 24, 2012 7:24 pm

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.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post