home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 9 Archive
/
09-Archive.zip
/
lzhmvs.zip
/
README.D0C
< prev
Wrap
Text File
|
1994-04-20
|
4KB
|
66 lines
Cross-platform Compression, From PCs to UNIX to MVS - and back
These programs were taken from the information supplied in the December
1993 Dr. Dobb's Journal article titled CROSS-PLATFORM COMPRESSION, From PCs
to UNIX to MVS - and back, by Pierre J.Dion with the original source code
downloaded from Internet. If you would like to read all about the effort
put forth in creating these programs, get a hold of the above issue of
Dr. Dobb's Journal, probably still at your local library.
LZHDOS, LZHMVS, and LZHBIN are three versions of the same program for
doing data compression on the workstation and the mainframe host. The
DOS and MVS versions are setup to support each other in the PC DOS and
Mainframe MVS environments. Each will work as a standalone product in
its own environment as well as accept the compressed file from the other.
However, the LZHDOS version ONLY supports compressed pure text files from
and to LZHMVS. If the compressed files are binary, then LZHBIN must be
used in the PC DOS environment to compress or decompress the files going
to or coming from the mainframe.
All three LZHxxx program versions are written in C and the three included
executable files were compiled with MicroSoft's C 6.0 compiler. These three
EXE files are for DOS systems only. Even the LZHMVS.EXE works very well
on the DOS system although the status information is not as informative.
The LZHMVS.C version MUST be transferred to the IBM MVS mainframe and
compiled using a mainframe MVS supported C compiler. IBM's and SAS' C
work very well.
These programs are being used here at PRC's mainframe Computer Center in
support of our remote PC based users needing a quicker way to timely transfer
large data files between the IBM mainframe MVS system and the remote PC DOS,
Windows, and OS/2 workstation systems.
Good luck to all who give 'em a try. ---------- Carl Goswick
PRC Inc. 1W2
1500 PRC Drive
McLean, VA 22102-5001
"All" documentation is "included" in the C source for the programs but in
general the syntax is a follows:
DOS:
lzhdos e file1.txt file1.lzh - - - - Encodes a text file in DOS
for shipping to another DOS
or MVS system
lzhdos d $file.lzh $file.txt - - - - Decodes a text file in DOS
from another DOS or MVS system
lzhbin e binary.dat binary.lzh - - - - Encodes a binary file in DOS
for shipping to MVS
lzhbin d $bin.lzh $bin.dat - - - - Decodes a binary file in DOS
from a MVS system
MVS:
alloc da(file1.lzh) f(filein) shr - - - Allocate compressed file to
DDName FILEIN
alloc da(file1.text) f(fileout) new lrecl(80) blksize(3120) recfm(f b) +
tra space(5,5) - - - Allocate a new file for the
decompressed file to DDName
FILEOUT
lzhmvs d filein fileout 80 - - - - Decodes a text file in MVS
setting the output file's
lrecl to 80 and blank filling
free f(filein fileout) - - - Release the allocated DDNames