Gil, you are good at this!

I tried using forkexecm and it worked, the only thing is that only TASKLIB, 
STEPLIB, or JOBLIB DD data set allocations are propagated to the new process, 
do you have any idea how to make allocations on the new ASID?

Thanks!
Leo

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Friday, April 05, 2013 11:27 AM
To: [email protected]
Subject: Re: REXX calling an authorized program.

On Fri, 5 Apr 2013 15:11:54 +0000, Leonardo Vaz wrote:
>
>I am trying to run an authorized program from a rexx. More specifically, I am 
>trying to run HZSPRNT from a rexx sitting on a cgi-bin from an IBM HTTP server.
>
>As expected, any tries to directly call the program results in an abend S047. 
>I realize that the program needs to be run in a different JSCB, or a different 
>address space.
>
>The easier way I could find to make this work is to have the rexx submit a JCL 
>to run the program. But I still don't see this as a good way to do it.
>
>Other ideas I got from the internet was:
>
>1)   using IKJEFT01 having the program in the AUTHPGM list
>
>2)   Using system rexx (AXR)
>
>3)   using unix spawn() or fork()/exec()
>
>I like the last idea, since I am running the rexx in a BPXAS already, but I 
>found no way of running a MVS program from a spawn() or fork().
> 
BPX1EXM.  But note many restrictions.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to