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

PKZIP A basic doubt


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
RedDevil711

New User


Joined: 04 Jun 2010
Posts: 25
Location: Pune

PostPosted: Fri Feb 24, 2012 2:58 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Feb 24, 2012 3:04 pm
Reply with quote

Quote:
Will this work ? How does HLQ.TEST.ZIP get created and contain the zipped information from the flat file .
icon_eek.gif

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compiler and run JCL for basic PL/I p... PL/I & Assembler 10
No new posts Doubt about pl/1 (job offer) General Talk & Fun Stuff 5
No new posts PKZIP - extracting multiple txt files All Other Mainframe Topics 3
No new posts doubt when executing a file when logg... TSO/ISPF 2
No new posts Doubt in MFS IMS DB/DC 2
Search our Forums:

Back to Top