Thank you,
I will check "address tso" (new for me)

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED]
Behalf Of McKown, John
Sent: Donnerstag, 23. Februar 2006 18:02
To: [email protected]
Subject: Re: REXX and APF


> -----Original Message-----
> From: IBM Mainframe Discussion List
> [mailto:[EMAIL PROTECTED] On Behalf Of Miklos Szigetvari
> Sent: Thursday, February 23, 2006 3:36 AM
> To: [email protected]
> Subject: REXX and APF
>
>
> Hi
>
> I would like to call a REXX exec from a non TSO environment, (HTTP
> server)  and the exec would call an APf authorized program
> (SAPI interface) I read the archive about this, maybe a new
> solution in 2006 ?
>
> --
> Mit freundlichen Grüßen / Best regards
>
> Miklos Szigetvari

I do this myself to execute RACF commands via the HTTPD server. Write your
CGI in REXX. Issue the TSO APF authorized commands via the "address tso"
environment. For example:

address tso "LU userid"

This will set up a parallel TSO environment in another address space and
have it issue the LU command. The output from the LU command will be
directed back to the CGI and can be trapped with the normal OUTTRAP command.
If you don't trap the output, it is routed to "stdout" and usually appears
as part of the output from the CGI.

The parallel TSO environment stay around until your CGI ends or you do a
"logoff" command. So all the overhead is usually only done once per CGI.

Remember that to have the TSO command run as APF authorized, it must be
linked into an APF library with an AC(1) and must also appear in the
IKJTSOxx member of PARMLIB.

--
John McKown
Senior Systems Programmer
UICI Insurance Center
Information Technology

This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and its content is protected
by law.  If you are not the intended recipient, you should delete this
message and are hereby notified that any disclosure, copying, or
distribution of this transmission, or taking any action based on it, is
strictly prohibited.

----------------------------------------------------------------------
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

----------------------------------------------------------------------
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

Reply via email to