Thank you Gil, you were very helpful!!!

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

On Apr 5, 2013, at 10:57, Leonardo Vaz wrote:
> 
> 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?
> 
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] 
> On Behalf Of Paul Gilmartin
> Sent: Friday, April 05, 2013 11:27 AM
>> 
> BPX1EXM.  But note many restrictions.
>  
Only the hard way.  Pass the list of required allocations as strings in PARM (I 
don't know whether pipes and/or environment variables are propagated), and 
re-do the allocations with BPXWDYN or C library functions.  Even worse, since 
forkexecm() starts a separate ASID, you may encounter ENQ conflicts with the 
parent process.

And the propagated TASKLIB, etc. allocations may be passed as a list of 
catalogued data set names; allocation by VOLSER may not be respected.

LISTSERV MVS-OE might be a source of additional information.
Many of them are better than I am.

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