There are commands (todsn and fromdsn) in our free Co:Z Toolkit for
converting MVS datasets to/from Unix pipes, which you can redirect into
infozip / gzip / bzip2.   They offer all sorts of options like line
termination rules, codepage conversion, padding/truncation rules, etc.

See:  http://dovetail.com/products/dspipes.html

An example for converting a text dataset to Latin-1 ASCII using CR/LF as a
line terminator and preserving trailing spaces:

fromdsn -l crlf -k -s IBM-1047 -t ISO8859-1 //my.dsn   |
   zip  my.zip -


And if you want to pipe to a dataset or DD, you can use the Co:Z Batch
utility to put your shell script inline and work with DD names:

// EXEC PGM=COZBATCH
//IN    DD ...
//OUT DD ...
//STDIN DD *
fromdsn -l crlf -k -s IBM-1047 -t ISO8859-1 //DD:IN   |
   zip  - - |
   todsn -b //DD:OUT
//

BTW: for me gzip or bzip2 works better for piped input, since zip creates a
zip file with a single file named "-" in it.

Of course, if you hate OMVS you won't like this ;-)

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

PS> Sometimes when you need to deal with many combinations of compressing,
encrypting, converting, and transfering datasets from z/OS its just easier
(and cheaper) to offload processing to a Linux "gateway appliance".   Here's
an article from a past zJournal that discusses one approach:

http://www.zjournal.com/index.cfm?section=article&aid=1075

On Tue, Jun 23, 2009 at 10:25 AM, Vikesh Bhoola <[email protected]> wrote:

>
> Thank you.
>
> Perhaps for a different thread, but INFOZIP related, anyone know if its
> possible :
> 1. to retain trailing blanks in the file for FB records ?
> 2. modify the current EBCDIC/ASCII translation table (eg. to change all
> non-keyboard characters to '?')
>
>

----------------------------------------------------------------------
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