Re: fork on MVS and MVS-Datasets

2006-04-05 Thread Walt Farrell

On 4/5/2006 8:38 AM, JB wrote:

I wrote a C-Program on MVS / OS/390 (a
Batch Program that runs as a Job under TSO).

I will create a new process and I will use MVS-Datasets, which I have
allocated in the parent process. It seems, this is a problem under MVS.
Datasets doesn't inherited from the child.
I have used fork() to create the child. I have tried to use named pipes
to process the information from the child to the parent. It doesn't
work. 


How can I handle this problem?


I believe you will get better answers to such questions on the MVS-OE 
mailing list, rather than the IBM-MAIN mailing list, as MVS-OE is more 
focused on z/OS UNIX topics.


If you're not familiar with MVS-OE, see
http://www-03.ibm.com/servers/eserver/zseries/zos/unix/bpxa1dis.html

Walt

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


Re: fork on MVS and MVS-Datasets

2006-04-05 Thread Walt Farrell

On 4/5/2006 12:13 PM, JB wrote:

I think, i have found an answer.
I use pipe() and all the other terrible things like dynalloc() I handle
in the child. After this I read the pipe in the parent.

I don't use the UNIX SYSTEM SERVICE.


Yes, you do.  You're using fork(), and pipe(), and those are UNIX 
functions.  It does not matter if you are running in a traditional batch 
job, or TSO, or whatever.  Those environments have access to UNIX 
functionality, and you're taking advantage of that in your program.


And the best discussion location for that is MVS-OE.  Using UNIX does 
not mean running in a UNIX shell, nor running a program that resides 
in the UNIX file system.


Walt

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