Pretty much any program can use z/OS Unix services. Strictly speaking I don't think that there is an "inside" and an "outside", just "use". So, just EXEC PGM=XXXXX and when the program makes its first Unix kernel call it will be "dubbed" and get a Unix process id. That's about as much as there is to establishing a program as a Unix process on z/OS.
The tricky part comes why you try to redirect stdin/stdout/stderr from processes to z/OS data sets, while providing for full dataset support. That's where BPXBATCH sucks. In z/OS 1.7 BPXBATCH fixed stdout and stderr redirection, but stdin is still broken. It isn't that hard if you know how to use pipe() and select(). Kirk Wolf Dovetailed Technologies http://dovetail.com On Fri, Oct 13, 2017 at 1:37 PM, Frank Swarbrick < frank.swarbr...@outlook.com> wrote: > When I said "outside of the UNIX environment" I simply meant using > standard JCL with EXEC PGM=<name of program>, rather than using one of the > BPX programs to do what I assumed is "establish a UNIX environment". > Granted I don't understand what the BPXBATCH or BPXBATSL programs truly do, > so my terminology is likely incorrect. Nonetheless, I was able to run it > with JCL without what I consider to be "UNIXy" stuff, and that was what I > wanted. Not that I am against UNIX, but our developers are not at all > familiar with it so its nice that it can run as what looks like "standard > MVS JCL", regardless of UNIX hiding under the covers. :-) > > I wonder if I copy the "swift" executable to a PDSE if I could even run > the compiler in the same way. I'll try that out at some point. I assume > EXEC PGM is restricted to 8 bytes upper case, which is why I'd have to do > this. Let me know if that's not true! > > The other thing I should point out is that LE runtime option POSIX(ON) is > required. > > Frank > ________________________________ > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN