[comp.unix.ultrix] Reading Ultrix setld distribution tapes on VMS

rainwatr@ucunix.san.uc.edu (Don Rainwater) (01/18/90)

	We have entered into DEC's CSLG program, and are now receiving
DEC software on either TK50 or CD.  We have a VAXstation running VMS
that has 2 CD drives on it, and we also have a VAX 6350 running VMS that
has a TK50 drive.  Unfortunately, our Ultrix system is an 8650 which has
only a TU81.

	To be useful on Ultrix, the distribution kits have to be
readable by the 'setld' utility.  Is there some utility for VMS that can
be used to read a setld tape (TK50) and create another setld tape
(either TK50 or "regular" magtape)?  Alternatively, can the setld TK50's
be copied onto the VMS 6350 and then DECnet-copied or FTPed to the
Ultrix system (for installation or creation of a setld magtape)?

	I realize that there are various hardware solutions to this
(TK50 on the 8650, Ultrix workstation with TK50 drive, etc), but a
simple software solution would be preferred at this point.

	Thanks in advance for any information.
--
Don Rainwater, Systems Manager, Univ. of Cincinnati Computer Center
rainwatr@ucunix.san.uc.edu		rainwatr@ucbeh.san.uc.edu
...!uccba!ucunix!rainwatr		rainwatr@ucbeh.bitnet

grr@cbmvax.commodore.com (George Robbins) (01/18/90)

In article <91@ucunix.SAN.UC.EDU> rainwatr@ucunix.san.uc.edu (Don Rainwater) writes:
> 
> 	To be useful on Ultrix, the distribution kits have to be
> readable by the 'setld' utility.  Is there some utility for VMS that can
> be used to read a setld tape (TK50) and create another setld tape
> (either TK50 or "regular" magtape)?  Alternatively, can the setld TK50's
> be copied onto the VMS 6350 and then DECnet-copied or FTPed to the
> Ultrix system (for installation or creation of a setld magtape)?

The setld tapes can be treated as unlabeled, multiple-file tapes with
a recordsize of 512 and a blocksize of 10240.  I'm not real hot on
VMS utilities, but it shouldn't be too hard to cook up a command
file or something to to read files until you hit end of tape (0 length file).
You can either do tape to tape, or use n temporary files.

You can transfer the data with FTP (or probably DECnet stuff) as long
as binary data integreity is maintained.

I don't know the format/organization of the setld stuff as CD or disk
files, but I have used the tape mode stuff to go from tk50 to 9-track...
 
-- 
George Robbins - now working for,	uucp: {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing	arpa: cbmvax!grr@uunet.uu.net
Commodore, Engineering Department	fone: 215-431-9255 (only by moonlite)

kaiser@cheese.enet.dec.com (01/18/90)

In article <91@ucunix.SAN.UC.EDU>, rainwatr@ucunix.san.uc.edu (Don Rainwater)
writes...

>Is there some utility for VMS that can
>be used to read a setld tape (TK50) and create another setld tape
>(either TK50 or "regular" magtape)?

I endorse heartily the earlier rather laconic suggestion to use the DECUS VMS
utility VMSTPC, which will make an on-disk copy of any tape of any kind
whatsoever, then copy that on-disk version onto any {other, same} kind of tape.
No need to write your own.  And VMSTPC will {read,write} a tape at streaming
speeds.  I find it invaluable.

---Pete

kaiser@cheese.enet.dec.com
DEC, 2 Mt. Royal Ave. (UPO1-3), Marlboro MA 01752-9108
508-480-4345 (machine: 617-641-3450)

cqny@vax5.CIT.CORNELL.EDU (01/18/90)

We use the VAXTPC utility, available in the [VAX000.TOOLS] directory
on the DECUS VAX sig tapes, to copy ultrix setld tapes into container
files on our VAX/VMS system.  The container files are DECNET-copy-able,
a remote system can then use VAXTPC to restore the container file to
a tape for Ultrix installation.

Rich Marisa
Cornell Programmable Automation
marisa@cpa.tn.cornell.edu

puglia@cunixf.cc.columbia.edu (Paul Puglia) (01/18/90)

Hmm.. If it's blocked like a tar file and its got the same number of
records as a tar file there must be tar files on them thar setld tapes.
But seriously folks, if a setld tape is made up of a number of tar files
then you can use the VMS convert with the enclosed fdl file to read these
files off of the setld tape.
-------------------cut here and put in a file with .fdl extension-------     
SYSTEM
        SOURCE                  VAX/VMS
     
FILE
        ALLOCATION              13
        BEST_TRY_CONTIGUOUS     no
        CLUSTER_SIZE            1
        CONTIGUOUS              no
        EXTENSION               0
        GLOBAL_BUFFER_COUNT     0
        ORGANIZATION            sequential
        OWNER                   [puglia]
        PROTECTION              (system:RWED, owner:RWED, group:RE, world:RE)
     
RECORD
        BLOCK_SPAN              yes
        CARRIAGE_CONTROL        none
        FORMAT                  fixed
        SIZE                    10240
     
_____________________________________________________________________________     

To actually read the tape, the command would be
$convert/pad/fdl=filename.fdl <tape device> filename.tar

and you would repeat this for the number of tar files on the setld tape.
If you just want to make copies of the tape just reverse the process
you used to read the files onto disk.  I used this command to copy tar tapes all
the time. It should even allow you to move stuff from a tk50 to nine-track.

If you wanted to move this files over to and ultrix machine, you should
use "dcp -i" (I believe the original poster said he had decnet) rather
then ftp, because some vms implementation of binary mode ftp also
take the ^@^B that separate records. These extra characters will
cause problems with the tar checksums. Once you have all the 
files on the ultrix side you can then you can cat the
pieces them all together to make a setld diskfile which you 
should be able to use setld on.

Paul Puglia
Dept of Civil Engineering
Columbia University