- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Is there an (UN)ZIP api?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 03:39 PM
тАО11-18-2010 03:39 PM
Is there an (UN)ZIP api?
Cheers,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 03:51 PM
тАО11-18-2010 03:51 PM
Re: Is there an (UN)ZIP api?
but nothing other than (optimistic?) comments
about other environments. (See "api.c" in
both kits.)
Your problem description is a little too
fuzzy for me to say whether it would make
sense to explore this possibility further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 04:12 PM
тАО11-18-2010 04:12 PM
Re: Is there an (UN)ZIP api?
I occasionally run ZIP procedures and organize them into semi-annual files e.g. 2009_1.zip (Jan to Jun) and 2009_2.zip (Jul to Dec). If the Basic program(s) could add them into a ZIP file "automatically" as they are produced and perhaps the print routine could extract them from the archive, print them and then delete them. There are lots of other examples where lots of individual files get created per division, used maybe once and then occupy disk space thereafter.
Obviously it can get done with DCL, but if I could shift the work to them ... ;-)
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 04:26 PM
тАО11-18-2010 04:26 PM
Re: Is there an (UN)ZIP api?
One of the available interfaces here with a full callable API specifically intended for packaging files is the OpenVMS Librarian utility, and a full callable interface is available. Look in the OpenVMS Utility Routines Reference Manual for the LBR$ calls.
A more typical solution is some variation of a database, which (when it involves source code files) is usually some form of source code management tool. Git or Mercurial (Hg) are the common modern distributed version management solutions, Subversion (SVN) is an older approach, and the classic VMS solution is DECset CMS package.
The source code control systems are also often involving regression tests (looking for problems in the code before it goes into production) as well as prepackaged automated release paths for the builds.
Some (sneaky, clever) sites will also insert a pretty printer into the source code control check-in path, so the source code is always consistently formatted.
Based on your comments, there are probably project oversight issues lurking here too, and those will likely need to be resolved before this swamp can be drained.
I generally recommend find some insistent and persistent curmudgeon for, um, the continuous enforcement of proper code management conduct, and definitely look to get the source pools under control.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 04:27 PM
тАО11-18-2010 04:27 PM
Re: Is there an (UN)ZIP api?
OpenVMS does have callable file compression with DCX and (with recent releases) zlib. There are open source analogs, and versions of zlib and such are kicking around.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 04:59 PM
тАО11-18-2010 04:59 PM
Re: Is there an (UN)ZIP api?
> I could shift the work to them ... ;-)
LIB$SPAWN works from BASIC, doesn't it?
There might be some need to take care about
simultaneous access by multiple processes, of
course. I normally use Zip+UnZip in a batch
mode, to pack or unpack some kit with static
content, but Zip has a bunch of different
update/freshen/filesync/... modes, as well as
the simple add-an-archive-member scheme, and
UnZip should be able to manage selective
extraction.
> [...] Librarian [...] database [...]
Might also be useful. (Especially if the
files have UNIX-like attributes which won't
get wrecked by non-VMS-native software.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2010 05:02 PM
тАО11-18-2010 05:02 PM
Re: Is there an (UN)ZIP api?
Rather than change your existing code, adding a ZIP then UNZIP and print phase, I'd go for the simpler route and do regular post processing, in whatever language is appropriate.
Run a daily job that collects files which have been printed and ZIPs them (or insert them into a text library). As well as avoiding any changes to your existing application, you have the flexibility to change the mechanism you use - ZIP, Librarian, BZIP, database, offload to another system etc...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2010 06:49 AM
тАО11-24-2010 06:49 AM
Re: Is there an (UN)ZIP api?
Is there some practical limit how many "modules" can be in a text library?
"OpenVMS does have callable file compression with DCX"
Do you have any further pointers for that product? I can't seem to find anything on it.
Cheers,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2010 07:22 AM
тАО11-24-2010 07:22 AM
Re: Is there an (UN)ZIP api?
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2010 07:34 AM
тАО11-24-2010 07:34 AM
Re: Is there an (UN)ZIP api?
Yeah, I thought about suggesting that also, but though better of it. Zip is relatively well understood and universally available.
Using that will be so much more transparent for the rest of the world.
You can just expose them on a Samba share and allow Windoze user to just use gui's to look at the file.
How would that work for you using VMS libraries?
I abhor repeated spawns, preferring an API, like most of us.
But hey, if it gets the job done easily and just called once per file and optionally optimized ( NOCLISYM? NOLOGNAM?...)
And compared to the price of thousands of files in a directory it is all good again.
Maybe optimize the temp files on a RAM drive?
Cheers,
Hein