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. 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..."
-- 
zMan -- "I've got a mainframe and I'm not afraid to use it"

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

Reply via email to