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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to code a rexx exec to display mvs commands using IOF panel 2

Status
Not open for further replies.

rexxnewbee

Technical User
Mar 24, 2005
3
US
Hello !!!

I am trying to code a simple rexx exec for use
in displaying mvs commands using an IOF panel.
I intend this to be interactive and not batch.

For example, I would like to issue the following mvs command, d grs,c to display conflicts via a rexx exec. Here are my last
2 lines of code:

address iof
"display panel(pnlname)"

this is where I get the error message of:
panel not found

Do I need to allocate a dsn to panel? If so,
what do I need to code and am I missing
anything else?

All I want to do is display commonly used
mvs commands using an IOF panel thru a rexx
exec.

Any help would be greatly appreciated. THANKS
 
Do you know where the panel lives? If not, game over.

If you do:
Code:
address ISPEXEC 
"LIBDEF ISPPLIB DATASET ID("panelds") STACK"
"DISPLAY PANEL("pnlname")"
"LIBDEF ISPPLIB"

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Thank you very much for your help.

I found out where the panel lives today but
when I run the exec I still get return codes
of (-3) for the last 3 lines of code when using a trace. What does this mean? What am I still missing ?

Once again, any information will be greatly
appreciated by this "novice", THANKS.
 
A RC(-3) almost always means "wrong address mode".

Which line gets the first (-3), and what address mode is current at the time?


Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
NewBee, from your original post I get the impression you are trying to display a panel (as Frank explained) but also trying to do IOF work (from the title and the 'address iof' line).

IOF has a REXX interface but I haven't been inclined to find out how it works so maybe if you explain what you're trying to achieve you might get more help.
 
Hello !!!

I receive the first -3 return code on the first line of code when I try to address
ispexec(from the code above).


I also need to address IOF so that the Rexx
Exec can issue commands like D A,L and D SMF
automatically on the IOF panel whenever I run the Rexx Exec interactively using = 1.6 (tso)
so I can see the displays of the commands, real time. I know where the panel resides and
don't need to create a new one but don't know
how to code it step by step.

What I would like to know, is this possible
and does it make sense ? Are there security
issues with consoles preventing this?

What I am trying to do is code a simple Rexx
exec(from start to finish) to display results from simple mvs commands(eg. d smf) using an IOF panel.

Thanks again, for all the help.
 
A proper ISPF environment does not exist at the time you attempt to LIBDEF. I presume you started IOF (whatever that is) from READY-mode rather than from within an ISPF session and are now trying to use ISPF facilities where the infrastructure has not been initialized. Try starting IOF from inside an ISPF environment.

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top