_EDC_UMASK_DFLT

General discussion on the JZOS batch launcher and toolkit
Post Reply
jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

_EDC_UMASK_DFLT

Post by jriemer »

In attempting to set the umask, I've specified the following:

//S1 EXEC PROC=EXJZOSVM,VERSION='14',LOGLVL='+T',
// LEPARM='ENVAR("_EDC_UMASK_DFLT=022")'

resulting in the following acknowledgement messages:

2:53 JZOSVM14(I): _EDC_UMASK_DFLT=022
2:53 JZOSVM14(I): _CEE_RUNOPTS=ENVAR("_EDC_UMASK_DFLT=022")

However, permissions on new files are 644 rather than the expected 755. I've also tried a value of 0022 rather than 022, with no different results.

Any ideas? Thanks.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

How are you creating/opening the files?

This has been reported earlier as working: http://www.dovetail.com/forum/viewtopic.php?p=746

In this topic, just setting the environment variable directly in STDENV worked, but setting via LE should be equivalent.
jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

Post by jriemer »

They're net new i.e. do not exist prior to the run.

I previously tried an EXPORT of _EDC_UMASK_DFLT in STDENV, but without success.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Ok, but how did you create the file in Java?
jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

Post by jriemer »

It turns out according to the developer that 644 is an indication of success as a result of a maximum permissions restriction. Therefore, this is no longer an issue. Thanks for your attention.
Post Reply