Operating System - OpenVMS
1829816 Members
1681 Online
109993 Solutions
New Discussion

How to navigate through tape records in VMS

 
Patrick_42
Contributor

How to navigate through tape records in VMS

Dear all,

I Unix, i can navigate tape records using mt like:

mt -f /dev/rmt/0mn fsf 2

will move the tape advance 2 tape records for furhter manipulation like tar, cpio, etc.

How can i do the same in vms ?

Thanks!

Patrick.
5 REPLIES 5
Mac Lilley
Frequent Advisor

Re: How to navigate through tape records in VMS

Patrick

You can use the SET MAGTAPE command with the /SKIP qualifier. The tape must first be mounted /FOREIGN. To get details of the options available do HELP SET MAGTAPE /SKIP.

Mac
Guy Peleg
Respected Contributor

Re: How to navigate through tape records in VMS

Patrick,

Assuming the name of you tape driver is MKA500:

$ MOUNT/FOREIGN MKA500:
$ SET MAGTAPE/SKIP=FILE:2 MKA500:

Guy
Terry Yeomans
Frequent Advisor

Re: How to navigate through tape records in VMS

If the tape has been backed up using savesets then:
BACKUP/LIST tapedrive:
This will run to the end of the current saveset.
Type the command again for every saveset until you get an error saying there are no more savesets on the tape.
Terry.
Antoniov.
Honored Contributor

Re: How to navigate through tape records in VMS

HI Patrick,
I don't known unix so I read HP-UX V11 reference guide to mt; I think Guy post right command list.
Bye
Antoniov
Antonio Maria Vigliotti
Dieter Rossbach
Regular Advisor

Re: How to navigate through tape records in VMS

It depends very much on the way, the tape was writen.

1. on a non-VMS-System, use the set magtape/skip-method
2. on VMS with copy:
Do a
$ mount magtape: label
/in case you don't know the label and have some rights on the system you can use
$ mount /over=id magtape:
as well)
$ DIR magtape:
to get a listing of the files on tape and the copy them to disk using:
$ copy magtape:filename disk:
3. on VMS using backup:
you can either
$mount /for magtape:
$backup /list magtape:
as written before or
$ mount magtape: label
$ dir magtape:
to get a list of the backup files
$ dismou/nounload magtape
$ mount/for magtape
$ backup magtape:filename ...
to read a specific saveset.

Regards

Dieter