Mark, my example below provides the Unix process within the job's address space. Please note that there are a couple of limitations to BPXBATSL to spawn successfully into the same ASID, e.g. you'll need eUID=0 for SH parameter instead of PGM. The Unix Command Reference reads a lot about this in appendix D.
Cheers Michael //STEP0 EXEC PGM=BPXBATSL, // PARM='PGM /bin/ps -elf -o xasid -o pid -o jobname -o ruser -o comm' //SYSPRINT DD SYSOUT=* //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* //STDENV DD DATA,DLM=## _BPX_SHAREAS=YES _BPX_BATCH_SPAWN=YES ## //STDIN DD DUMMY STDOUT-DD reads: ********************************* TOP OF DATA ********************************** ASID PID JOBNAME RUSER COMMAND 2f 84148285 TSSADMB TSSASM BPXBATSL 2f 17039422 TSSADMB TSSASM /bin/ps ******************************** BOTTOM OF DATA ******************************** I also checked MVS D A,ALL,USERID=TSSASM: the Job's ASID sure was 2F. Mark Steely <[email protected]> Gesendet von: IBM Mainframe Discussion List <[email protected]> 20.01.2010 23:49 Bitte antworten an IBM Mainframe Discussion List <[email protected]> An [email protected] Kopie Thema USS Batch We have several batch jobs that spawn (forked) additional address spaces with a number append to the jobname. These jobs execute BPXBATCH or BPXBATSL. Is there a way to have these jobs use the current job address space instead of starting a new one? Thank You ******* CONFIDENTIALITY NOTICE ******* This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message from your system. Thank you. ---------------------------------------------------------------------- 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

