Check the files... they probably have only newline as line separators.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

FWIW, there is a sample program in JZOS (in the IBM Java SDK) that I
wrote called "ZipDatasets" which will create Zip files from/to
datasets, PDS members, etc.
Unfortunately, it suffers the same fate (files are converted from
EBCDIC to ASCII with newlines and not CR/NL ).

You can download the source code, class files, and javadoc from here:

http://www-03.ibm.com/systems/z/os/zos/tools/java/products/jzos/jzossamp.html

This can be run in batch using the JZOS Batch Launcher.  Here are some details:
===========================================================

Usage: com.ibm.jzos.sample.ZipDatasets [-t targetEncoding] outfile indsname...
  where:
  -t targetEncoding can optionally specify the codepage name to encode the
      text data as it is written to the Zip file.  If not specified,
      this defaults to ISO8859-1 (Latin/ASCII)
  and outfile is either:
    - a Unix file path name: /path/to/some/file.zip
    - a dataset name:  //A.B.C
    - a PDS member name:  //A.B.C(MEM)
    - a DD name: //DD:XYZ
    - a DD name and member:  //DD:XYZ(MEM)
  and each (at least one) indsname is either:
    - a dataset name:  //A.B.C
    - a dataset pattern:  //A.*.D
    - a PDS member name:  //A.B.C(MEM)
    - a PDS member pattern:  //A.B.C(D*X)
    - a DD name: //DD:XYZ
    - a DD name and member:  //DD:XYZ(MEM)
    - a DD name and member pattern:  //DD:XYZ(D*X)
  // prefixes may be omitted from indsnames                     
  All dataset names are assumed to be fully qualified.

Example: Zip several partitioned datasets to a Unix zip file:

    com.ibm.jzos.sample.ZipDatasets test.zip sys1.proclib(asm*) hlq.**.jcl

Example: Zip all datasets matching two patterns to a dataset:

    com.ibm.jzos.sample.ZipDatasets //hlq.backup.zip payroll.*.data gl.**.dat*

Example: Zip data using DDs and input and output:

    com.ibm.jzos.sample.ZipDatasets //DD:ZIPOUT //DD:INSEQ1
//DD:INPDS1 //DD:INPDS2(FOO*)



On Fri, Aug 13, 2010 at 10:05 AM, Jim McAlpine <jim.mcalp...@gmail.com> wrote:
> I ran the following to archive 2 files at once -
>
>
>> //ZIP     EXEC PGM=ZIP,
>> //  PARM='/ -v -a  dd:archive -@'
>> //STEPLIB  DD DSN=INFOZIP.LOAD,DISP=SHR
>> //SYSPRINT DD SYSOUT=*
>> //SYSOUT   DD SYSOUT=*
>> //CEEDUMP  DD SYSOUT=*
>> //ARCHIVE  DD DSN=INFOZIP.ARCHIVE,DISP=(NEW,CATLG),
>> //            SPACE=(CYL,(10,10),RLSE),.....
>> //SYSIN    DD *
>> 'SEQ.DATASET1.TXT'
>> 'SEQ.DATASET2.TXT'
>
> and downloaded it to my pc in binary and unzipped it but the resultant files
> have no end of line separators and I'm left with files of just a single
> line.  Is there a parameter to fix that behaviour.
>
> Jim McAlpine
>
> ----------------------------------------------------------------------
> 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
>

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

Reply via email to