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

After unzipping the zipped ps file, records are changed.


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Wed Jun 09, 2010 8:41 pm
Reply with quote

I have executed the JCl to zip the PS file. after that unzip the zipped file, but unzipped file contains more records.
Please share your thoughts/suggestion for the same
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 09, 2010 9:09 pm
Reply with quote

Since ZIP is not standard on a mainframe, you must be using a vendor package. Have you contacted the vendor for assistance?

Record formatting could cause this -- what is the input file DCB, what is the DCB of the zip file, and what is the DCB of the output file you unzip to?
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Thu Jun 10, 2010 11:54 am
Reply with quote

thanks,
But the DCB parameters are same for input file and Unzipped file.
I tried for 5000 record it works fine, but when tried for millions of records then unzipped file contains more records.
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Wed Jun 16, 2010 9:15 am
Reply with quote

Any one can share your suggestion or comments. If possible any other way to Zip and again Unzip the same PS files,provided the data should not change.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 16, 2010 5:07 pm
Reply with quote

Since I know of at least three vendor products (PKZIP, INFO-ZIP, ZIP/390) to create zip files on the mainframe, you haven't exactly told us enough information to help you.

No, the number of records should not change just by zipping and unzipping a file. However, the record counts very easily could change depending upon the parameters you specify for the zip operation and the parameters you specify for the unzip operation. In any case, this is something YOU are causing and hence is best addressed by contacting the vendor of the zip product you are using.

You can also use pax or tar on Unix System Services on a z/OS machine to create archive files. They are not zip files but share many of the same characteristics. You could also have your site support group install GNU ZIP which is an open source zip implementation that runs on Unix System Services. The .gz files created by GNU ZIP are a form of zip file, but GNU ZIP is not interchangeable with commercial zip products as they use patented algorithms that GNU ZIP is careful not to infringe upon.
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Fri Jun 18, 2010 9:17 am
Reply with quote

I am using PKZIP product.
For ZIP the file I am using following Parameters,

ARCHIVE_OUTFILE(FILEOUT)
ARCHIVE_UNIT(SYSDA)
ACTION(ADD)
PATH(N)
INFILE(FILEIN)

and For UNZIP following parameters,

ECHO
ARCHINDD(FILEIN)
OUTVOL(NEW)
OUTDD(FILEOUT)
OUTUNIT(SYSDA)

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

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Mon Jun 21, 2010 9:34 am
Reply with quote

Hello,
Any one has tried to ZIP the PS file with the help of PKZIP(utility) and again Unzip the Zipped file by PKUNZIP(utility). Please share the JCL/Ideas/Guideline.

Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jun 21, 2010 5:06 pm
Reply with quote

I use ZIP/390, not PKZIP so I don't know much about PKZIP for MVS. However, if you want help with your problem, you're going to have to post the JCL you used -- the ZIP statements are completely useless for debugging. In particular, how are FILEIN and FILEOUT defined for the ZIP job and for the UNZIP job?
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Sun Jun 27, 2010 3:48 pm
Reply with quote

Do I need to post the JCl ? Since, JCL contains only utility to zip the file and Utility to unzip the file(In other JCL), other parameters I already sent in previous post.
I am not aware about the ZIP/390.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Jun 27, 2010 7:41 pm
Reply with quote

You posted:
Quote:
But the DCB parameters are same for input file and Unzipped file.
If the JCL contains only the zip and unzip utility, how do you know this? If, for example, you had RECFM=FBA on the input file and RECFM=FB on the output file -- these are not the same files and you would most likely get extra records on the output file. All because of a single letter 'A' in the JCL that you might not even realize is there.

Besides, you've been asked multiple times for details and you are not providing them. It seems that you want us to magically fix your problem without telling us the details about it. Unfortunately for you, psychic day this week is not today. Without actual, real information we cannot do much. We want to see the input file DCB (ISPF 3.4 information output would be good) and how the output file is getting created (where the DCB parameters are coming from, in other words).
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Mon Jun 28, 2010 1:23 pm
Reply with quote

I have check the DCB parameters for input file as well as Output files both are same. please find JCL for ZIP and UNZIP the file,

//JOBCARD
/*ROUTE XEQ PKZIP
//PS020 EXEC PGM=PKZIP,REGION=0M
//STEPLIB DD DISP=SHR,DSN=SYS1.PKZIP.LINKLIB
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//FILEIN DD DSN=C8UST.E3USD207.INPUT.ZIP.VOL1,DISP=SHR
//FILEOUT DD DSN=C8UST.E3USD207.ZIPPED.VOL1,
// DISP=(NEW,CATLG,DELETE)
//SYSIN DD DSN=NB7736A.SHARU.ADHOC(ZIPDAT),
// DISP=SHR

NB7736A.SHARU.ADHOC(ZIPDAT)==> CONTAINS BELOW PARAMETERS,
-ARCHIVE_OUTFILE(FILEOUT)
-ARCHIVE_UNIT(SYSDA)
-ACTION(ADD)
-PATH(N)
-INFILE(FILEIN)

FILE NAME==> C8UST.E3USD207.INPUT.ZIP.VOL1
PARAMETERS..
DSORG:PS
RECORD FORMAT: FB
RECORD LENGHT:380
BLK SIZE: 27740

************************************
JCL TO UNZIP THE FILE
//JOBCARD
/*ROUTE XEQ PKZIP
//PS020 EXEC PGM=PKUNZIP,REGION=0M
//STEPLIB DD DISP=SHR,DSN=SYS1.PKZIP.LINKLIB
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//FILEIN DD DSN=C8UST.E3USD207.ZIPPED.VOL1,
// DISP=SHR
//FILEOUT DD DSN=C8UST.E3USD207.OUTPUT.UNZIP.VOL1,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// DCB=(DSORG=PS,RECFM=FB,LRECL=380,BLKSIZE=27740),
// DATACLAS=STANDARD
//SYSIN DD DSN=NB7736A.SHARU.ADHOC(UNZIPDAT),
// DISP=SHR

NB7736A.SHARU.ADHOC(ZIPDAT)==> CONTAINS BELOW PARAMETERS,
-ECHO
-ARCHINDD(FILEIN)
-OUTVOL(NEW)
-OUTDD(FILEOUT)
-OUTUNIT(SYSDA)

I have executed above both JCL still there is huge change in the output records.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jun 28, 2010 7:06 pm
Reply with quote

Quote:
I have executed above both JCL still there is huge change in the output records.
You just cannot provide details, can you? What is a "huge" increase? 2 records? 10%? 50%? 100%? 250%? 20000%? What do the new records look like, compared to the old -- same data in different records? part of a record, followed by another part of the record? duplicated records? is there any regularity to the output file -- such as stair step patterns?

And to repeat from my first post -- HAVE YOU CONTACTED THE VENDOR FOR ASSISTANCE? The vendor should be your first contact in such a case since they have much more experience with issues about their software than anyone on this forum could possibly have.
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Tue Jun 29, 2010 3:25 pm
Reply with quote

Input File Record Count is 998309.
Zip File Record Count is 554
Output file Record Count is 1035251.
So. the Difference is (1035251-998309)=36942.
I will discuss with the Vendor.

Meanwhile, Is there any another utility(Apart form PKZIP and PKUNZIP) to ZIP and UNZIP the PS Files?
Back to top
View user's profile Send private message
Rusikesh

New User


Joined: 04 Feb 2010
Posts: 25
Location: United States

PostPosted: Wed Jun 30, 2010 7:21 pm
Reply with quote

Can we ZIP and UNZIP the file by any other method/utility..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 30, 2010 7:46 pm
Reply with quote

Zip is not standard on a mainframe, but must be purchased from a software vendor. It is unlikely that your site has purchased multiple packages to do the same thing, especially since the cost is thousands of dollars for each package.

Other possibilities:

FTP the file to your PC in binary and unzip it on the PC, then transfer the unzipped data to the mainframe

contact your site support group to see if they have installed gzip / gunzip which are open source zip implementations

move the file to Unix System Services and try using PAX on it
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 -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top