Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

PKZIP ISSUE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Deepak Dash

New User


Joined: 03 Sep 2007
Posts: 16
Location: India

PostPosted: Wed Jul 23, 2014 2:41 am    Post subject: PKZIP ISSUE
Reply with quote

I am zipping two files on Mainframe and transmitting to a UNIX system. For zipping I am using PKZIP and using below option.

-ECHO
-ARCHIVE(ZIPFILES)
-ACTION(ADD)
-DATA_TYPE(DETECT)
-METHOD(NORMAL)
-TRAN(USASCII)
-NOPATH
-TEXT
FILE1
FILE2

Issues: - After Zipping two files I am getting all the CR (carriage return)and LF (linefeed) at the end of each record. I can see these after I download Mainframe ZIP file to my Windows base system. These line feeds are also getting transmitted to destination system which is UNIX.

Questions: - Is there a way to avoid this line feed and CR while zipping files on Mainframe?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Jul 23, 2014 3:52 am    Post subject:
Reply with quote

Have you read the PKZIP for MVS User's Guide manual? Particularly the discussion of -DATA_DELIMITER?
Back to top
View user's profile Send private message
Deepak Dash

New User


Joined: 03 Sep 2007
Posts: 16
Location: India

PostPosted: Wed Jul 23, 2014 4:11 am    Post subject: Reply to: PKZIP ISSUE
Reply with quote

Yes. I just finshed reading now. I did find what I was looking for.

Sorry for bothering you all.

Thanks.
Back to top
View user's profile Send private message
Deepak Dash

New User


Joined: 03 Sep 2007
Posts: 16
Location: India

PostPosted: Fri Aug 01, 2014 8:18 pm    Post subject: PKZIP with Double Zipping
Reply with quote

Team,

I am Zipping one file using PKZIP and after that I am doing another zipping of zipped file with another file to send final Zip file to destination. However in destination the system is able to unzip the zipped files but not able to unzip double zipped file.

While sending with double zipping I am using below option. Any help is much appreciated.

-ECHO
-ARCHIVE(ZIPFILES)
-ACTION(ADD)
-DATA_TYPE(DETECT)
-METHOD(NORMAL)
-TRAN(USASCII)
-NOPATH
-TEXT - Do I need any change over here ?
ZIPPED1 - Here I am giving the first Zipped file
FILE2
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Fri Aug 01, 2014 8:51 pm    Post subject: Reply to: PKZIP ISSUE
Reply with quote

If you are zipping zipped files, the zipped files are in binary. You must not do an ASCII conversion of a binary file, and I guess TEXT may be irrelevant as well at that stage.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Sat Aug 02, 2014 3:56 am    Post subject:
Reply with quote

If you take a binary zipped file, and run a TEXT conversion on it, you will wind up with an unusable zip file.
Back to top
View user's profile Send private message
Deepak Dash

New User


Joined: 03 Sep 2007
Posts: 16
Location: India

PostPosted: Mon Aug 04, 2014 11:14 pm    Post subject:
Reply with quote

Is there a way I can resolve this issue? Appreciate your help.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Tue Aug 05, 2014 1:05 am    Post subject: Reply to: PKZIP ISSUE
Reply with quote

Well, the second time you zip it (which is I assume just to collect a number of zipped files together) don't specify the conversion to ASCII and don't tell it that the file is TEXT.

Did you try it manually, to confirm that it will work?
Back to top
View user's profile Send private message
Deepak Dash

New User


Joined: 03 Sep 2007
Posts: 16
Location: India

PostPosted: Tue Aug 05, 2014 1:25 am    Post subject:
Reply with quote

I did not try the option provided by you. I will try now.

Meanwhile I did Zip both files individually with ASCII option and while doing third Zip I specified BINARY option. I downloaded the file to PC and able to unzip and see the desired results.
Back to top
View user's profile Send private message
Ramsee

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Thu Aug 07, 2014 12:44 pm    Post subject:
Reply with quote

Hi Deepak Dash,
Your Quote :

Quote:

Issues: - After Zipping two files I am getting all the CR (carriage return)and LF (linefeed) at the end of each record. I can see these after I download Mainframe ZIP file to my Windows base system. These line feeds are also getting transmitted to destination system which is UNIX.


If you want the ZIPPED file to contain no data delimiters, you may specify CRLF(N) or
ZIPFILE_RECORD_DELIMITER(). If CR-LF is specified on ZIP, but CRLF(N) is specified on
UNZIP, then SecureZIPz treats any x'0D0A' as data characters, translates them into the
EBCDIC equivalent, and embeds them in the output file. Although it is possible to align fixedlength
records in an output file without CR-LF (by using input and output files with identical
record lengths), care must be taken when using CRLF(N) because
ZIPFILE_RECORD_DELIMITER is the only explicit mechanism available to determine record
lengths for text files.

Hope this helps your Query.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm
No new posts Issue in sending zip file as mail att... ajithajt JCL & VSAM 8 Thu Apr 07, 2016 9:11 am
No new posts Include Cond issue vickey_dw DFSORT/ICETOOL 6 Tue Mar 29, 2016 8:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us