home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!Chris_F_Chiesa
- From: Chris_F_Chiesa@cup.portal.com
- Newsgroups: comp.os.vms
- Subject: Re: Reading raw tapes
- Message-ID: <69062@cup.portal.com>
- Date: Sat, 7 Nov 92 14:53:04 PDT
- Organization: The Portal System (TM)
- References: <1992Nov4.104123.15158@memex.co.uk>
- Lines: 28
-
- Scott Williamson (scott@memex.co.uk) writes:
-
- >Can anyone tell me what sort of COPY, BACKUP etc. type command I need
- >to use under VMS to read magnetic tapes of unknown format.
-
- If you can determine that all the blocks on the tape are of the same
- length, you can do this:
-
- $ MOUNT/FOREIGN tapedrive: /BLOCK=blocksize/RECORD=blocksize
- $ COPY tapedrive: filespec
-
- I've only done this (DCL) with tapes on which all blocks are the same size;
- I don't know if it will work correctly for a tape on which the blocks are
- of varying sizes. Also, this will only get data from the "current tape
- position" to the next "file mark" on the tape (the mark acts like EOF).
-
- Setting DCL aside, it's very simple to write a program that uses $QIO to
- read arbitrary-sized blocks off a /FOREIGN-mounted tape and write them to
- a file of any desired RMS organization; one thing that works is a file
- of "varying-length records," letting a 0-length record represent a tape
- mark. It's easy to write the companion utility that runs this trick in
- reverse, too, turning that tape-in-a-disk-file back into a new tape. We
- do it all the time.
-
- Chris Chiesa
- Chris_F_Chiesa@cup.portal.com
-
- disclaimer: Portal isn't my VMS system, just a place where I read/write news.
-