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

Zip different GDGs in a single file using PKZIP


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

New User


Joined: 27 Oct 2005
Posts: 15
Location: Pune

PostPosted: Thu Oct 09, 2008 7:12 pm
Reply with quote

Hi,

I have two different GDGs, ABC.XYZ(0) and ABC.LMN(0). I need to zipp the files in a single. The file names in the zip file should be changed to "REPORT1.TXT" AND "REPORT2.TXT".

When the fully resolved GDG name is provided the pkzip utility works fine. However I am unable to use the relative generation level, it creates a hierarchy as ABC/XYZ/G001V00.txt.

My SYSIN card is as follows

Code:

-BINARY                                       
-DATA_DELIMITER(CRLF)                         
-DATA_TYPE(DETECT)                             
-FILE_TERMINATOR()                             
-ARCHIVE_OUTFILE(ARCHOUT)                     
-COMPRESSION_LEVEL(MAXIMUM)                                         
-ZIPPED_DSN(ABC.XYZ,-
           REPORT1.TXT)         
-ZIPPED_DSN(ABC.LMN,-
           REPORT2.TXT) 
-INFILE(ZIPIN1) ----> ABC.XYZ(0)                               
-ACTION(ADD)                                   
-INFILE(ZIPIN2) --> ABC.LMN(0)
-ACTION(ADD)                                   
-CRLF(Y)                                       
-SAVE_LRECL(N)                                 


Any help would be appreciated.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Oct 09, 2008 8:14 pm
Reply with quote

Have you checked the PKZIP manual to see what it says about GDG processing?
Back to top
View user's profile Send private message
nitin_d

New User


Joined: 27 Oct 2005
Posts: 15
Location: Pune

PostPosted: Fri Oct 10, 2008 9:47 am
Reply with quote

Yes, I have... According to the Manual, we can specify relative generation level in INFILE command.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 10, 2008 12:00 pm
Reply with quote

Hello,

Between the run that works and the run that does not, what changes are made to either the jcl or the control statements?

Also, please post the informational messages presented for each run.
Back to top
View user's profile Send private message
nitin_d

New User


Joined: 27 Oct 2005
Posts: 15
Location: Pune

PostPosted: Fri Oct 10, 2008 12:34 pm
Reply with quote

When a completely resolved GDG name is specified, the zip file is as expected. When the relational generation level is specified, the datasets are not renamed. The Zip file would have a folder ABC which contains folder XYZ, which in turn contains the file with name as G001V00.

In both cases the job doe not abend and the files are zipped, but as stated above the results are not as expected
Back to top
View user's profile Send private message
nitin_d

New User


Joined: 27 Oct 2005
Posts: 15
Location: Pune

PostPosted: Fri Oct 10, 2008 12:36 pm
Reply with quote

I Have also tried the command -SELECT_NOGDGALL, but with no success
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Oct 10, 2008 4:37 pm
Reply with quote

Sounds like it's time to contact the vendor to find out why the program is behaving in this way. It may be WAD, in which case you can accept the behavior or you can use fully qualified GDG names.
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

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
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
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top