View previous topic :: View next topic
|
Author |
Message |
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I posted this in the original topic. It's straight out of the manual. Please take note of what it says:
Quote: |
In the context of ZIP Archives, a “text file” is one that is stored in the ASCII format. A text file contains records of data, each separated by a delimiter to signify the end of the record.
PKZIP for zSeries uses the default delimiter CRLF (x’0D0A’) at the end of each text record. You may choose to use a different delimiter by using the –DATA_DELIMITER command (or other characters as specified in the command set). At the end of each ZIP’d file is a file terminator. The default file terminator for PKZIP for zSeries is Ctrl-Z (x’1A’). This file terminator can be changed by using the –FILE_TERMINATOR command.
Note: The last record will have the data delimiter followed by the file terminator.
|
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
nallaperumal, nowhere, at any time, in either of your PKZIP topics, did you disclose to us what type of system you were preparing the zip file for. Anyone who prepares data for use on a Windows system knows that text data requires a Carriage-Return/Line-Feed ('0D0A'X) for each end-of-line, and a Ctrl-Z ('1A'X) for end-of-file. Unix, Linux, and other ASCII-based systems have their own requirements (usually CR only).
If you didn't know this, then you should have taken a hex dump of a known good file and checked what it uses for EOL and EOF, and then you could've set your PKZIP parameters to the proper settings as needed. Or, you probably could've asked a system admin or developer for that application, and they probably could've told you as well. |
|
Back to top |
|
|
nallaperumal
New User
Joined: 19 Nov 2007 Posts: 23 Location: Chennai
|
|
|
|
Thanks superk it worked fine for me
Thanks again for all your effort |
|
Back to top |
|
|
|