On 11/1/2010 2:51 PM, zMan wrote:
On Mon, Nov 1, 2010 at 4:33 PM, McKown, John
<[email protected]> wrote:
Please define "in batch". What are you running to get UNIX services going? Or are you
just calling some BPX* program from your program and letting things default? /etc/profile and
$HOME/.profile are only used by the UNIX /bin/sh program and then only when it is a "login
shell".
Yeah, since sending that, I've learned a bit more. I'm not calling any
BPX program -- I'm calling a program that has POSIX(ON) and creates
files using POSIX functions.
What language is your program written in? What "POSIX functions" is it using?
In my software I use bpx1opn and set the mode bits in a constant
and it comes out just fine without worrying about umask.
Also, you might want to post your question on the mvs-oe list.
And it seems to still be 0022, even
though I've changed it to 0000 in the profiles. I don't see it in RACF
anywhere, but of course that doesn't mean I'm not just missing it.
There's the _BPX_BATCH_UMASK STDENV variable, but that only seems to
apply to BPXBATCH. Maybe I need to just call umask from the program --
that just seems odd and poorly thought out, though. And might irritate
the user who *wants* to control the umask; all I need is to understand
how to control it, then I can tell them "You're on yer own..."
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
* To get a good Return on your Investment, first make an investment!
+ Training your people is an excellent investment
----------------------------------------------------------------------
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