View previous topic :: View next topic
|
Author |
Message |
nitin_d
New User
Joined: 27 Oct 2005 Posts: 15 Location: Pune
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Have you checked the PKZIP manual to see what it says about GDG processing? |
|
Back to top |
|
|
nitin_d
New User
Joined: 27 Oct 2005 Posts: 15 Location: Pune
|
|
|
|
Yes, I have... According to the Manual, we can specify relative generation level in INFILE command. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
nitin_d
New User
Joined: 27 Oct 2005 Posts: 15 Location: Pune
|
|
|
|
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 |
|
|
nitin_d
New User
Joined: 27 Oct 2005 Posts: 15 Location: Pune
|
|
|
|
I Have also tried the command -SELECT_NOGDGALL, but with no success |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|