On Thu, Apr 9, 2015 at 12:59 PM, Dana Mitchell <[email protected]> wrote:
> I have this working pretty well, with one unexplained quirk that I can
> work around. I have a script containing:
>
> #
> # $1 - Input MVS dataset name
> # $2 - Output directory
> # $3 - Output file name
> #
> export TSOALLOC=inmvs:outzfs
> #
> export inmvs="alloc da('$1') shr"
> #
> export outzfs="alloc path('/u/tzeke/$3') PATHDISP(KEEP,DELETE)
> PATHOPTS(OWRONLY,OCREAT,OEXCL)\
> PATHMODE(SIRUSR,SIWUSR,SIRGRP,SIWGRP,SIROTH,SIWOTH)"
> #
>
> tso -t "OCOPY INDD(INMVS) OUTDD(OUTZFS) TEXT CONVERT(YES) PATHOPTS(USE)"
> #
> ...
>
>
> If I look at the file after the OCOPY, permissions are this:
>
> -rw-r--r-- 1 DMITCHE SYS1 281556 Apr 9 12:56 shzbinf
>
> I've tried different combinations of PATHMODEs, and it appears it doesn't
> let me assign update for the group or everyone, any idea what would be
> interfereing with that? PATHMODE coded on DD in JCL seems to work just as
> expected....
>
What is your umask value? I am not sure it that is coming into play in
this scenario or not. Try the following, if you would.
export x=$(umask); umask 0000;
tso -t "OCOPY INDD(INMVS) OUTDD(OUTZFS) TEXT CONVERT(YES) PATHOPTS(USE)";
umask ${x}; unset x
"x" in the above is just a holder for the current umask value.
example:
$
umask
0022
$
export x=$(umask);umask 0000;touch x;umask ${x};touch y;ls -l x y
-rw-rw-rw- 1 TSH009 TSHG 0 Apr 9 13:20 x
-rw-r--r-- 1 TSH009 TSHG 0 Apr 9 13:20 y
$
>
> Dana
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
--
If you sent twitter messages while exploring, are you on a textpedition?
He's about as useful as a wax frying pan.
10 to the 12th power microphones = 1 Megaphone
Maranatha! <><
John McKown
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN