How to force use of a single unix process to all bpxbatch calls?

2022-05-29 Thread ITschak Mugzach
I am running a program that calls BPXBATCH several times. Each call creates another task (STC) that runs the command. I want to use the same time used to create a new stc every call and that the unix task will remain active the entire job life. Is this possible? ITschak ITschak Mugzach *|** IronS

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-29 Thread Seymour J Metz
U] on behalf of ITschak Mugzach [imugz...@gmail.com] Sent: Sunday, May 29, 2022 9:00 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: How to force use of a single unix process to all bpxbatch calls? I am running a program that calls BPXBATCH several times. Each call creates another task (STC) that runs the co

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-29 Thread Itschak Mugzach
tp://mason.gmu.edu/~smetz3 > > > From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf > of ITschak Mugzach [imugz...@gmail.com] > Sent: Sunday, May 29, 2022 9:00 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: How to force use of a single unix pr

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-29 Thread Lionel B. Dyck
t [IBM-MAIN@LISTSERV.UA.EDU] on behalf >> of ITschak Mugzach [imugz...@gmail.com] >> Sent: Sunday, May 29, 2022 9:00 AM >> To: IBM-MAIN@LISTSERV.UA.EDU >> Subject: How to force use of a single unix process to all bpxbatch calls? >> >> I am running a program that cal

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-29 Thread Seymour J Metz
, May 29, 2022 10:38 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: How to force use of a single unix process to all bpxbatch calls? Sure. How to? בתאריך יום א׳, 29 במאי 2022 ב-16:24 מאת Seymour J Metz : > You can't reuse the process, but you can request sharing of the address > space i

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-29 Thread Paul Gilmartin
On Sun, 29 May 2022 14:50:50 +, Seymour J Metz wrote: >_ç there are some restrictions. > Many. I believe BPXBATCH unconditionally creates a new address space but sets _BPX_SHAREAS there. BPXBATSL spawns locally but is privileged. BPXWUNIX? COZBATCH? BPX1SPN? Stack multiple commands sepa

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-29 Thread Joe Monk
Looks like maybe he wants _BPX_SHAREAS=REUSE Joe On Sun, May 29, 2022 at 11:24 AM Paul Gilmartin < 000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Sun, 29 May 2022 14:50:50 +, Seymour J Metz wrote: > > >_ç there are some restrictions. > > > Many. I believe BPXBATCH unconditional

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-29 Thread Paul Gilmartin
On Sun, 29 May 2022 11:49:44 -0500, Joe Monk wrote: >Looks like maybe he wants _BPX_SHAREAS=REUSE > Is REUSE new? I had to look it up: . (REUSE is the same as YES.) Why should there be both‽ Just to f

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-29 Thread Steve Smith
Generally, a process started inside OMVS will run in a BPXAS initiator. On the MVS side, these are weird, in that they temporarily change their name to something like the program running (e.g. INETD8), but unlike batch initiators, there is no separate JES2 jobid for the client process. If you do

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-30 Thread Kirk Wolf
I would need more information: - By "the command" do you mean a z/OS Unix shell command? - Why exactly do you want BPXBATCH? - Do you want another STC for each "command", or is that what you don't want? - Do you need the z/OS Unix shell itself, or is it OK to run the command without a shell?

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-30 Thread Itschak Mugzach
Kirk, A rexx exec is processing a file system. First call to bpxbatch perform ls looping on the directories listed in the root to look for specific files (ignore the logix, it was dictated by a uniprocessor and a mixture of software). I noticed that every call to unix creates (or starts) a shadow

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-30 Thread Joe Monk
Itschak, Looks like you want _BPX_SHAREAS=YES. But note: "If the extended attribute for the shared address space is not set, the program will not run in a shared address space, regardless of the setting of _BPX_SHAREAS. The attribute is set by extattr +s and reset by extattr -s. If the attribute

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-30 Thread Paul Gilmartin
Run your silly Rexx under UNIX. Ir's simpler. On Mon, 30 May 2022 15:52:24 +0300, Itschak Mugzach wrote: > >A rexx exec is processing a file system. First call to bpxbatch perform ls >looping on the directories listed in the root to look for specific files >

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-30 Thread Paul Gilmartin
On Mon, 30 May 2022 15:52:24 +0300, Itschak Mugzach wrote: >... >(ignore the logix, ... ) > Easily enough done since you supplied none. You'd get more directed advice if you supplied a code excerpt or pseudocode. -- gil --

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-31 Thread Kirk Wolf
It isn't really clear to me what you are trying to do other than some variation on /bin/find and then processing the resulting list of files. Are you are trying to start multiple concurrent processes? I can't tell. For your general description, you may want to start with a main rexx exec, its

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-31 Thread Paul Gilmartin
On Tue, 31 May 2022 15:08:57 -0500, Kirk Wolf wrote: >It isn't really clear to me what you are trying to do other than some >variation on /bin/find and then processing the resulting list of files. > /bin/find is underappreciated. find -exec /bin/sh -xc " list of co

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-31 Thread Kirk Wolf
find -exec is a generally poor choice for doing something efficiently, especially on z/OS. find -exec is an extremely popular way to demonstrate a heaping dose of impenetrable syntax On Tue, May 31, 2022, at 6:05 PM, Paul Gilmartin wrote: > On Tue, 31 May 2022 15:08:57 -0500, Kirk Wolf wrote

Re: How to force use of a single unix process to all bpxbatch calls?

2022-05-31 Thread Paul Gilmartin
On Tue, 31 May 2022 20:44:49 -0500, Kirk Wolf wrote: >find -exec is a generally poor choice for doing something efficiently, >especially on z/OS. > find ... | xargs -0 ... would be more efficient, but z/OS doesn't support xargs -0. Does Rocket's findutils do better? >find -exec is an extremely