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
 

 

After unzipping the zipped ps file, records are changed.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
View previous topic :: :: View next topic  
Author Message
Rusikesh

New User


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

PostPosted: Wed Jun 09, 2010 8:41 pm    Post subject: After unzipping the zipped ps file, records are changed.
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: 7913
Location: Bellevue, IA

PostPosted: Wed Jun 09, 2010 9:09 pm    Post subject:
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: 22
Location: United States

PostPosted: Thu Jun 10, 2010 11:54 am    Post subject: Reply to: After unzipping the zipped ps file, records are ch
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: 22
Location: United States

PostPosted: Wed Jun 16, 2010 9:15 am    Post subject: Reply to: After unzipping the zipped ps file, records are ch
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: 7913
Location: Bellevue, IA

PostPosted: Wed Jun 16, 2010 5:07 pm    Post subject:
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: 22
Location: United States

PostPosted: Fri Jun 18, 2010 9:17 am    Post subject: Reply to: After unzipping the zipped ps file, records are ch
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: 22
Location: United States

PostPosted: Mon Jun 21, 2010 9:34 am    Post subject: Reply to: After unzipping the zipped ps file, records are ch
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: 7913
Location: Bellevue, IA

PostPosted: Mon Jun 21, 2010 5:06 pm    Post subject:
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: 22
Location: United States

PostPosted: Sun Jun 27, 2010 3:48 pm    Post subject: Reply to: After unzipping the zipped ps file, records are ch
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: 7913
Location: Bellevue, IA

PostPosted: Sun Jun 27, 2010 7:41 pm    Post subject:
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: 22
Location: United States

PostPosted: Mon Jun 28, 2010 1:23 pm    Post subject: Reply to: After unzipping the zipped ps file, records are ch
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: 7913
Location: Bellevue, IA

PostPosted: Mon Jun 28, 2010 7:06 pm    Post subject:
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: 22
Location: United States

PostPosted: Tue Jun 29, 2010 3:25 pm    Post subject: Reply to: After unzipping the zipped ps file, records are ch
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: 22
Location: United States

PostPosted: Wed Jun 30, 2010 7:21 pm    Post subject: Reply to: After unzipping the zipped ps file, records are ch
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: 7913
Location: Bellevue, IA

PostPosted: Wed Jun 30, 2010 7:46 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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