Page 1 of 1

PKUNZIP Utility.

PostPosted: Tue Aug 21, 2012 11:02 am
by Vineet
Hi All,

I am Not Sure this is a Right Forum to Raise the Issue Related To PKUNZIP. I am facing Issue with PKUNZIP Utility.Issue is. After Unzip I am Getting some Special Characters in the O/P File which is Cause of Concern. Please Suggest what Need to be Done. I am Providing the PKUNZIP Card Along with O/P file.

//STEP01 EXEC PGM=PKUNZIP
...................
...................

Parameters Use for UNZIP:
-METHOD(SUPERFAST)
-CRLF(C)
-ECHO
-ARCHINDD(INARCH)
-OUTDD(OUTFILE)
-TEXT
-DATA_TYPE(TEXT)

O/P File:
8¦1¦238¦4¦2150¦19375¦Hellmann.ÇÖs Real Mayonnaise - MAC Test - Ø., Ø. Øñ Ìí غ
8¦1¦238¦4¦2151¦19375¦Hellmann.ÇÖs Real Mayonnaise - MAC Test - Ø., Ø. Øñ Ìí غ
8¦1¦238¦4¦2152¦19375¦Hellmann.ÇÖs Real Mayonnaise - MAC Test - Ø., Ø. Øñ Ìí غ
8¦1¦238¦4¦2153¦19375¦Hellmann.ÇÖs Real Mayonnaise - MAC Test - Ø., Ø. Øñ Ìí غ
8¦1¦238¦4¦2154¦19375¦Hellmann.ÇÖs Real Mayonnaise - MAC Test - Ø., Ø. Øñ Ìí غ
8¦1¦238¦4¦2155¦19375¦Hellmann.ÇÖs Real Mayonnaise - MAC Test - Ø., Ø. Øñ Ìí غ
8¦1¦238¦4¦2156¦19375¦Hellmann.ÇÖs Real Mayonnaise - MAC Test - Ø., Ø. Øñ Ìí غ

File Parameter: LRECL - 3296, RECFM - FB.

Special Char.: ÇÖs , Ø., Ø. Øñ Ìí غ

Please Suggest do I need to Set any Additional Parameter to UNZIP.

Note: If Any Additional Info. is Required Please do let me know.

Thanks
Kind Rgd's

Vineet Anand

Re: PKUNZIP Utility.

PostPosted: Tue Aug 21, 2012 11:34 am
by NicC
Unless IBM have bought out PKWARE recently this is not an IBM tool. Moved to a more suitable place.

Re: PKUNZIP Utility.

PostPosted: Tue Aug 21, 2012 12:44 pm
by mongan
I do not think your problem is PKUNZIP, I think your problem is with different code pages. Where is the data coming from (before zipped, on what system), where are you unzipping it (on what system)?

Re: PKUNZIP Utility.

PostPosted: Tue Aug 21, 2012 7:59 pm
by Vineet
Hi Mongan,

File I am Recieving from 3rd Party. Using PGP Process we are Uploading the File. 3rd Party is having OS = AIX & To Zip the File using : GZIP. The Mainframe File we are Unzipping on the Mainframe having OS: Z/oS Version 1.13. Not Sure the Reason. Can U provide me some suggestion what Changes to be made.

Thanks

Re: PKUNZIP Utility.

PostPosted: Tue Aug 21, 2012 8:05 pm
by Robert Sample
You -- or somebody at your organization -- needs to talk to whoever sends you the file (third party or not doesn't matter) and find out what code page was used on the source machine. You can then match that code page to the appropriate EBCDIC code page on your mainframe.

Without knowing what the source code page is, nobody can do anything more than guess. The best suggestion is for someone to find out what code page the source came from -- period. If not, then you need to start trying different code pages (assuming you know what the data SHOULD look like) until you find one that produces the desired output (that is, guess).

Re: PKUNZIP Utility.

PostPosted: Tue Aug 21, 2012 11:43 pm
by dick scherrer
Hello,

Posting a few records in hex may point out something . . .

Re: PKUNZIP Utility.

PostPosted: Wed Aug 22, 2012 12:24 am
by Vineet
Hi,

Find Below the HEX Format of the File.

8¦1¦238¦4¦2139¦19375¦Hellmann.ÇÖs Real Mayonnaise  - MAC Test -  Ø., Ø. Øñ Ìí غ
F6F6FFF6F6FFFF6FFFFF6C899989906EA4D8894D8A99988A84464DCC4E8AA4644806483484475489
8A1A238A4A2139A19375A8533415588C2095130418655192500004130352300000FB00D00908500B
 ------------------------------------------------------------------------------------------------------------------------------------------------
8¦1¦238¦4¦2140¦19375¦Hellmann.ÇÖs Real Mayonnaise  - MAC Test -  Ø., Ø. Øñ Ìí غ
F6F6FFF6F6FFFF6FFFFF6C899989906EA4D8894D8A99988A84464DCC4E8AA4644806483484475489
8A1A238A4A2140A19375A8533415588C2095130418655192500004130352300000FB00D00908500B
 ------------------------------------------------------------------------------------------------------------------------------------------------
8¦1¦238¦4¦2141¦19375¦Hellmann.ÇÖs Real Mayonnaise  - MAC Test -  Ø., Ø. Øñ Ìí غ
F6F6FFF6F6FFFF6FFFFF6C899989906EA4D8894D8A99988A84464DCC4E8AA4644806483484475489
8A1A238A4A2141A19375A8533415588C2095130418655192500004130352300000FB00D00908500B
 -----------------------------------------------------------------------------------------------------------------------------------------------------------------
8¦1¦238¦4¦2142¦19375¦Hellmann.ÇÖs Real Mayonnaise  - MAC Test -  Ø., Ø. Øñ Ìí غ
F6F6FFF6F6FFFF6FFFFF6C899989906EA4D8894D8A99988A84464DCC4E8AA4644806483484475489
8A1A238A4A2142A19375A8533415588C2095130418655192500004130352300000FB00D00908500B
 -----------------------------------------------------------------------------------------------------------------------------------------------------------------
Code'd

Special Char.: ÇÖs , Ø., Ø. Øñ Ìí غ
Note: It's a Portion of File, for which I am facing issue.

Thanks
Kind Rgd's

Re: PKUNZIP Utility.

PostPosted: Wed Aug 22, 2012 1:29 am
by dick scherrer
Hello,

Your data has been "Code'd" for readability and to preserve alighment. Suggest you do this with data, code, JCL etc to make it easier for everyone to read.

Ask someone for the data definitions of the of the file on the sending system. The "bad numbers" and "special characters" appear to be packed-decimal and/or binary numbers and as such may be usable just as they are. What is your layout for the file?

Re: PKUNZIP Utility.

PostPosted: Thu Aug 23, 2012 12:55 am
by Ed Goodman
I'm suspicious that these are smart quotes or something. The leading x'08' may be a shift-out/shift-in. So the x'68ec' may be a special apostrophe. The other special characters might be cr/lf pairs.