Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract a text file from a ZIP file

Status
Not open for further replies.

webrabbit

MIS
Jan 31, 2003
1,059
US
Does any know of a way for a Micro Focus COBOL DOS program to extract text files from a ZIP file?
 
Has the DOS version a "system" call ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I don't want to write the file to disk. I just want to read it.
 
webrabbit,

How about using a "dos call" to extract the file to hd and then once it's not needed, a CBL Subroutine CBL_DELETE_FILE call to delete it.

Additinally, PKWare's pkzipcommand provides fully featured command line functions for windows platforms. Seems it's not like the "old days" where command line functionality was a given norm.

Steve
 
That's basically what I am doing now, in addition I write garbage to the file before deleting it. I was hoping for a more elegant approach.
 
Are you looking for something like this?

"The PowerTCP Zip Compression Tool lets you add high-speed, reliable, zip/unzip functionality to your applications regardless of whether you are manipulating files or memory.
 
Unfortunately, this does not match any of the specifications of "Micro Focus DOS COBOL".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top