home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20329 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!e2big.mko.dec.com!quark.enet.dec.com!lionel
  3. From: lionel@quark.enet.dec.com (Steve Lionel)
  4. Subject: Re: Variable length records to tape
  5. Message-ID: <1993Jan5.021144.13269@e2big.mko.dec.com>
  6. Sender: usenet@e2big.mko.dec.com (Mr. USENET)
  7. Organization: Digital Equipment Corporation
  8. References:   <1993Jan4.224831.5366@sobeco.com>
  9. Distribution: na
  10. Date: Tue, 5 Jan 1993 02:14:18 GMT
  11. Lines: 20
  12.  
  13.  
  14. In article <1993Jan4.224831.5366@sobeco.com>, szweep@sobeco.com (Steve Zweep) writes...
  15. >Can someone tell me how to write variable length physical blocks to tape
  16. >with VMS, so that the tape can be read again on a foreign system?
  17.  
  18. Mount the tape /FOREIGN.  Then whatever you write is what ends up on
  19. the tape.  Write 100 bytes, you get a 100-byte block, etc.  No padding,
  20. no record length.  If you're using RMS (or HLL I/O), you can open the
  21. tape drive by specifying the device name.  To write a tape-mark, close
  22. the file.  This is also pretty easy with $QIOs.
  23.  
  24. The only caveat is that you can't write blocks shorter than 14 bytes
  25. due to a restriction the magtape driver enacts.
  26.  
  27. Steve Lionel                    lionel@quark.enet.dec.com
  28. SDT Languages Group
  29. Digital Equipment Corporation
  30. 110 Spit Brook Road
  31. Nashua, NH 03062
  32.