JCL need? - create UNIX subdirectories
This seems to be a definate lack to me. I can allocate / read / write / delete individual UNIX files using JCL with the PATH= parameter. But there is no way to create any required subdirectories on the fly using JCL. The closest I can come is to run a BPXBATCH or IKJEFT01 step to do a mkdir before running the step which requires the new subdirectory. Does this bug anybody else? Or am I the only weirdo around? John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-691-6183 cell john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JCL need? - create UNIX subdirectories
On Thu, 26 Aug 2010 08:45:03 -0500, McKown, John john.mck...@healthmarkets.com wrote: This seems to be a definate lack to me. I can allocate / read / write / delete individual UNIX files using JCL with the PATH= parameter. But there is no way to create any required subdirectories on the fly using JCL. The closest I can come is to run a BPXBATCH or IKJEFT01 step to do a mkdir before running the step which requires the new subdirectory. Does this bug anybody else? Or am I the only weirdo around? Not sure if this will work in USS, but on my linux systems I use mkdir -p. The -p argument will make the parent directories. hth, Dave -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JCL need? - create UNIX subdirectories
-Original Message- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of David Waldman Sent: Thursday, August 26, 2010 9:06 AM To: IBM-MAIN@bama.ua.edu Subject: Re: JCL need? - create UNIX subdirectories On Thu, 26 Aug 2010 08:45:03 -0500, McKown, John john.mck...@healthmarkets.com wrote: This seems to be a definate lack to me. I can allocate / read / write / delete individual UNIX files using JCL with the PATH= parameter. But there is no way to create any required subdirectories on the fly using JCL. The closest I can come is to run a BPXBATCH or IKJEFT01 step to do a mkdir before running the step which requires the new subdirectory. Does this bug anybody else? Or am I the only weirdo around? Not sure if this will work in USS, but on my linux systems I use mkdir -p. The -p argument will make the parent directories. hth, Dave z/OS UNIX's mkdir does not allow the -p switch. You must mkdir each subdirectory, in order. But you still cannot do it with a JCL construct. I'd like the initiator to simply do the required mkdir commands internally, if required, when a non-existant subdirectory is mentioned in a PATH=. IMO, each subdirectory in this case should have a mode of 700 (rwx--) have a UID and GID taken from the job's RACF id and connect group. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-691-6183 cell john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JCL need? - create UNIX subdirectories
McKown, John wrote: This seems to be a definate lack to me. I can allocate / read / write / delete individual UNIX files using JCL with the PATH= parameter. But there is no way to create any required subdirectories on the fly using JCL. The closest I can come is to run a BPXBATCH or IKJEFT01 step to do a mkdir before running the step which requires the new subdirectory. Does this bug anybody else? Not me, until you raised the issue; not it seems like a glaring shortsight. Or am I the only weirdo around? Well, you're definitely not the only one :-) John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-691-6183 cell john.mck...@healthmarkets.com * www.HealthMarkets.com -- 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 lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html
Re: JCL need? - create UNIX subdirectories
On Thu, 26 Aug 2010 09:10:55 -0500, McKown, John wrote: I the only weirdo around? On this list!? z/OS UNIX's mkdir does not allow the -p switch. You must mkdir each subdirectory, in order. ??? u...@mvs:132$ uname -a OS/390 MVS3 20.00 03 2066 u...@mvs:133$ date Thu Aug 26 08:33:41 MDT 2010 u...@mvs:134$ mkdir -p foo/bar/wombat/xyzzy u...@mvs:135$ find foo -ls 1328591 drwxr-xr-x 3 user group8192 Aug 26 08:33 foo 1328601 drwxr-xr-x 3 user group8192 Aug 26 08:33 foo/bar 1328611 drwxr-xr-x 3 user group8192 Aug 26 08:33 foo/bar/wombat 1328621 drwxr-xr-x 2 user group8192 Aug 26 08:33 foo/bar/wombat/xyzzy (Don't let your Linux partisanship overwhelm us. I believe the construct is POSIX.) But you still cannot do it with a JCL construct. I'd like the initiator to simply do the required mkdir commands internally, if required, when a non-existant subdirectory is mentioned in a PATH=. IMO, each subdirectory in this case should have a mode of 700 (rwx--) have a UID and GID taken from the job's RACF id and connect group. Me, too. PATHOPTS=OCREAT should be sufficient to do this. Perhaps PATHMODE should be respected. Interestingly, JCL supports creating pipes (DSNTYPE=FIFO? I forget.) But not directories. I'd also like to creste symlinks with JCL. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html