The console interface does not have any ability to execute anything
other than console commands. To execute REXX code you will somehow have
to get the command passed to another address space that has a REXX
execution environment.
If you have Netview, you can use the Netview console command prefix
character in front of the EXEC invocation and the console "command" will
be passed to Netview for execution of a REXX exec defined in Netview's
CNMCLST concatenation.
If you don't have Netview, you could try defining a started task PROC
"xxxx" in PROCLIB with JCL to run batch TSO and execute your EXEC. If
the EXEC requires variable parameters, the invocation could be done
using a PARM field in the JCL with substitutable values supplied on the
"S xxxx,..." command. The SYSPROC/SYSEXEC DD in the PROC JCL would
supply the source library for the EXEC. You would have to set up
appropriate RACF definitions to define the RACF userid to be used for
this started task and permit the userid the appropriate access to all
datasets it requires.
Neither of the above techniques supports interaction with the EXEC
during execution in the same was as under interactive TSO (SAYs would go
to SYSTSPRT and would not be seen at the console). You would have to
use some technique that issues a WTOR message to the console and returns
a response to the EXEC. Netview has built-in support for this, but in
batch TSO you would either have to roll your own or use some additional
product (e.g. OpenSoft REXXTOOLS/MVS) that provides REXX WTOR support.
Hansedl wrote:
Hello Group,
I have written an EXEC that works great from my TSO userid. Any idea
how I can invoke that exec from the master console? How would the
master console find my EXEC (or command), perhaps 'SYS1.CMDLIB' but
would that need to come forward everytime maintenance is applied? The
only thing I could
find in the TSO/E REXX book was issuing commands to the console, not
from the console. Would you recommend any good books?
Thank you, Dave Hansen
Sr.System Programmer
Hennepin County
--
Joel C. Ewing, Fort Smith, AR [EMAIL PROTECTED]
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html