home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / lzhmvs.zip / README.D0C < prev   
Text File  |  1994-04-20  |  4KB  |  66 lines

  1. Cross-platform Compression, From PCs to UNIX to MVS - and back
  2.  
  3. These programs were taken from the information supplied in the December
  4. 1993 Dr. Dobb's Journal article titled CROSS-PLATFORM COMPRESSION, From PCs
  5. to UNIX to MVS - and back, by Pierre J.Dion with the original source code
  6. downloaded from Internet.  If you would like to read all about the effort
  7. put forth in creating these programs, get a hold of the above issue of 
  8. Dr. Dobb's Journal, probably still at your local library.
  9.  
  10. LZHDOS, LZHMVS, and LZHBIN are three versions of the same program for
  11. doing data compression on the workstation and the mainframe host.  The 
  12. DOS and MVS versions are setup to support each other in the PC DOS and
  13. Mainframe MVS environments.  Each will work as a standalone product in
  14. its own environment as well as accept the compressed file from the other.
  15.  
  16. However, the LZHDOS version ONLY supports compressed pure text files from
  17. and to LZHMVS.  If the compressed files are binary, then LZHBIN must be  
  18. used in the PC DOS environment to compress or decompress the files going
  19. to or coming from the mainframe.
  20.  
  21. All three LZHxxx program versions are written in C and the three included 
  22. executable files were compiled with MicroSoft's C 6.0 compiler. These three
  23. EXE files are for DOS systems only.  Even the LZHMVS.EXE works very well
  24. on the DOS system although the status information is not as informative.
  25.  
  26. The LZHMVS.C version MUST be transferred to the IBM MVS mainframe and 
  27. compiled using a mainframe MVS supported C compiler. IBM's and SAS' C
  28. work very well.
  29.  
  30. These programs are being used here at PRC's mainframe Computer Center in 
  31. support of our remote PC based users needing a quicker way to timely transfer
  32. large data files between the IBM mainframe MVS system and the remote PC DOS,
  33. Windows, and OS/2 workstation systems.
  34.  
  35. Good luck to all who give 'em a try.  ---------- Carl Goswick
  36.                                                  PRC Inc.  1W2
  37.                                                  1500 PRC Drive
  38.                                                  McLean, VA 22102-5001
  39.  
  40. "All" documentation is "included" in the C source for the programs but in
  41. general the syntax is a follows:
  42.  
  43.   DOS:
  44.     lzhdos e file1.txt file1.lzh     - - - -  Encodes a text file in DOS
  45.                                               for shipping to another DOS
  46.                                               or MVS system
  47.     lzhdos d $file.lzh $file.txt     - - - -  Decodes a text file in DOS
  48.                                               from another DOS or MVS system
  49.     lzhbin e binary.dat binary.lzh   - - - -  Encodes a binary file in DOS
  50.                                               for shipping to MVS
  51.     lzhbin d $bin.lzh $bin.dat       - - - -  Decodes a binary file in DOS
  52.                                               from a MVS system
  53.     
  54.   MVS:
  55.     alloc da(file1.lzh) f(filein) shr  - - -  Allocate compressed file to
  56.                                               DDName FILEIN
  57.     alloc da(file1.text) f(fileout) new lrecl(80) blksize(3120) recfm(f b) +
  58.       tra space(5,5)                   - - -  Allocate a new file for the
  59.                                               decompressed file to DDName
  60.                                               FILEOUT
  61.     lzhmvs d filein fileout 80       - - - -  Decodes a text file in MVS
  62.                                               setting the output file's
  63.                                               lrecl to 80 and blank filling 
  64.     free f(filein fileout)             - - -  Release the allocated DDNames 
  65.  
  66.