Vikesh,

I don't see a way to avoid the "-" file created by zip:  this is what it
uses as a file name when it uses stdin as input.   Better to use gzip or
bzip2 for single files anyway.

I didn't mean to imply that you hated OMVS - this was a little joke
referring to recent threads on IBM-MAIN :-)

OMVS is fine, but sometimes it is just easier to offload Unix stuff to a
"real" Unix/Linux distro, where all of the tools are readily available.
Using Co:Z Launcher to offload processing is nearly as simple as running the
previous "local" JCL I posted.

Here is JCL that offloads processing to a Unix/Linux/Windows box which could
be in your DMZ.
The Linux script compresses, encrypts, and transfers the datasets using a
series of pipelines:

// EXEC COZPROC,PARM='[email protected]'
//IN    DD  DSN=HLQ.DATA,DISP=SHR
//STDIN DD *
# this shell script runs on a Linux box, but uses fromdsn
# to reach back and access a dataset in the launching job
fromdsn -k -l crlf //DD:IN   |
  gzip -c - |
  gpg -r key-1 --batch --output=- --encrypt=- |
  curl -T- ftp://dest.host/dir/file.data
//

(Yes, this works with Windows if you have CYGWIN, although it wouldn't be my
preference)

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Wed, Jun 24, 2009 at 10:44 AM, Vikesh Bhoola <[email protected]> wrote:

> Kirk, thanks for info on Co:Z.
>
> Its not that I hate OMVS, it was just additional space was required as
> USS Info-zip couldn't read from MVS datasets.
>
> This solution works for me
> - can be used to read MVS datasets
> - can be used to write to MVS datasets as well
> - retains trailing spaces
> - uses CR/LF as a line terminator
>
> Will see how it manages zipping some large files.
>
> Apart from the single "-" file name within zip this is great. I assume
> there is no way getting around this one ?
>
> We are hoping to get gzip2 installed soon (still waiting on the order)
> than perhaps can get past this.
>
> > http://www.zjournal.com/index.cfm?section=article&aid=1075
>
> Thanks for this link, a solution we may consider.
>
> Regards,
> Vikesh
> Please Note: This email and its contents are subject to our email legal
> notice which can be viewed at http://www.sars.gov.za/Email_Disclaimer.pdf
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to