John, What about removing the subdirectory ? I would assume like a br14 mod,delete,delete... Dynamic creation also would be nice somehow
Scott ford www.identityforge.com from my IPAD 'Infinite wisdom through infinite means' > On Dec 8, 2013, at 11:34 AM, John McKown <[email protected]> wrote: > > This may be an "iffy" one.But I'll throw it out for discussion (and if > nobody wants to discuss, then I have my answer). > > I have an "automount" directory at /tmp2 . For a UNIX shell, I set all the > TMPxxx type environment variables to "/tmp2/&SYSUID". This makes the > default temporary UNIX subdirectory for each user to be unique. I do this > so that some "hog" of a user can't use up the temp space for other users. > I.e. they can only shoot themselves in their own foot, not somebody else's. > > Therefore, in a batch job, I can also use > PATH='/tmp2/&SYSUID/some-file.txt', ... However, what I would kind of like > to do is create a separate subdirectory for a job based on the job name. In > most shops, this would likely ensure that two concurrently running jobs > would not contend over a file name. Yes, I know that I could use > PATH='/tmp2/&SYSUID/&JOBNAME-some.file.txt', but I would prefer > PATH='/tmp2/&SYSUID/&JOBNAME/some.file.txt'. Just another personal oddity. > The problem is that there is no way to dynamically create a subdirectory > via JCL. So I was thinking that a new PATHOPTS might be useful. Something > like O_MKDIR which would tell the initiator to do the equivalent of a > "mkdir -p /tmp2/&SYSUID/&JOBNAME" and then create the file in that > subdirectory. > > The only problem I can envision (and there are likely more), is that the > JCL coders decide to just make O_MKDIR a standard for use on every DD which > is for a UNIX file. Which could result in subdirectories which are not > really wanted if the JCL coder mistypes something. Of course, the internal > "mkdir" should be done using the RACF id / UID of the job's OWNER, and not > the initiator. Which would hopefully stop somebody from creating UNIX > subdirectories and files where they don't belong. Also, I'm not sure what > the UNIX mode bits should be for any created subdirectories. At the least, > they should be 7??. I.e. at least read-write-execute for OWNER. > > In the interim, I guess I'm stuck with > '/tmp2/&SYSUID/&JOBNAME-some.file.txt'. > > -- > This is clearly another case of too many mad scientists, and not enough > hunchbacks. > > Maranatha! <>< > John McKown > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
