IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Junk EOF character while using PKZIp


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nallaperumal

New User


Joined: 19 Nov 2007
Posts: 23
Location: Chennai

PostPosted: Fri May 06, 2011 10:51 pm
Reply with quote

It's a shame that there's no way to display hex values on toy computers


I cant able to get you.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri May 06, 2011 11:51 pm
Reply with quote

Three damn minutes. It is hex 1A. Do a google for - ftp hex 1a - and you'll come up with a discussion on this site from last year. See where you get then, please.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat May 07, 2011 12:26 am
Reply with quote

nallaperumal wrote:
I am getting a Junk EOF character while using PKZIp. Is there any paramenter to avoid such Junck End of File Character after PKZIP - ing .
Aprreciate your help


To re-state your original request:

I am getting an PC-standard end-of-file character (hex 1a) at the end of the file I have FTP'd from a mainframe to a PC.

Oh, I'm not sure what the question is now.

Since you seem to be doing a lot of FTP'ing to PCs, I suggest you now work out how to look at hex values when they arrive on the PC, as suggested earlier. Think. Search. Let us know.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat May 07, 2011 1:01 am
Reply with quote

Akatsukami wrote:
It's a shame that there's no way to display hex values on toy computers icon_rolleyes.gif


There is. DEBUG.EXE. It's been a part of DOS and Windows since their inception, although it was finally dropped in Windows 7 (see my topic here about that). But, there are other tools (I use HexDump32).
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat May 07, 2011 1:04 am
Reply with quote

Akatsukami wrote:
It's a shame that there's no way to display hex values on toy computers icon_rolleyes.gif


I couldn't find the "irony" BBcode either.

Normally the 1A is displayed as either right-arrow or Control-Z (^Z). How did it get to be a square. Was it a square where you saw it originally.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat May 07, 2011 1:05 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat May 07, 2011 1:21 am
Reply with quote

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
View user's profile Send private message
nallaperumal

New User


Joined: 19 Nov 2007
Posts: 23
Location: Chennai

PostPosted: Sat May 07, 2011 1:52 am
Reply with quote

Thanks superk it worked fine for me

Thanks again for all your effort
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts String has hex character need to conv... COBOL Programming 3
No new posts Output LREC based on specific character DFSORT/ICETOOL 22
No new posts Replacing character string in file th... JCL & VSAM 9
Search our Forums:

Back to Top