View previous topic :: View next topic
|
Author |
Message |
RedDevil711
New User
Joined: 04 Jun 2010 Posts: 25 Location: Pune
|
|
|
|
I was scanning some of our existing code for bugs,
and found something interesting related to PKZIP, just wanted to know how exactly does this work.
Code: |
//STEP020 EXEC PGM=PKZIP
//INFILE DD DSN=HLQ.TEST.FLATFILE,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
-ECHO
-MEMORY_MODE(SMALL)
-ARCHIVE(HLQ.TEST.ZIP)
-METHOD(MAXIMUM)
-INDD(INFILE)
/* |
Will this work ? How does HLQ.TEST.ZIP get created and contain the zipped information from the flat file . |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Quote: |
Will this work ? How does HLQ.TEST.ZIP get created and contain the zipped information from the flat file . |
why not look at the PKZIP manual Yourself ?
just using a bit of logic
if the snippet was executed successfully then PKZIP made the dynamic allocation of the output.
otherwise /repeat on look at the PKZIP manual /repeat off
on how to write a proper PKZIP jcl
and by whatever mean was the output allocated it was PKZIP itself that filled it up with the compressed data from the input file |
|
Back to top |
|
|
|