I resemble that remark!

Different people are comfortable with different things. I happen to be 
comfortable with PDSs of JCL and not terribly comfortable with shell scripts. 
So shoot me. I plead guilty. I was suggesting that the OP might possibly be in 
the same boat.

> isn't this really just writing the dreaded shell script in the PARM?

Of course! OTOH it is embedded in an environment with which the OP may be more 
comfortable. If the remainder of the OP's process is JCL-based then this may be 
a better solution than running one job, getting over to a UNIX prompt and 
running one command, and then running a second batch job.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Paul Gilmartin
Sent: Friday, December 18, 2015 1:37 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: TAR Files:" Extracting" on a IBM Mainframe

On Fri, 18 Dec 2015 12:43:33 -0800, Charles Mills wrote:

>Trying to be helpful rather than smart*ss here, if you mean "I would 
>prefer a JCL-/batch-based solution to a UNIX command line solution" -- 
>and if so I
>
Being a smartass here, this reminds me of trying to make a C library with JCL 
instead of OMVS make.

>am sympathetic -- then you should be aware that you can run a UNIX 
>utility from JCL. Here is an example. You should be able to run UXIX 
>tar this way in a job if you prefer.
>
Here's a tested example:
//*
//*  Symbolics to obfuscate DSNAMEs and meet JCL LRECL limit.
//*      Archive is in legacy data set;  "pax" prefixes like TSO.
//*
//*  pax extracts to UNIX directory hierarchy.
//*    OGETX could copy to PDS(E).  I don't know whether
//*    "Data21's ZIP/390 Product" might eliminate a step.
//*    In either case a multilevel hierarchy makes it harder.
//*
//BPXARCH  EXEC PGM=BPXBATCH,COND=(4,LT), //  PARM='SH set -x; cd /tmp/&SYSUID; 
pax -rvf //&ARCH..pax.Z'
//*
//STDIN    DD   DUMMY
//STDOUT   DD   SYSOUT=*
//STDERR   DD   SYSOUT=*
//
(But isn't this really just writing the dreaded shell script in the PARM?)

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to