.; DECtape II operations. .; Adapted from Ira A Caplan, "The Multi-tasker", V15 No7 pp44-54 (Feb 1982). .; .GOSUB INIT ; ; If copying in RT-11 format, it is assumed that file types determine ; copy mode. Answer ctrl/Z to next question to exit if not. ; .IF P1 = "0" .OR .IF P1 = "1" .SETN UNIT 'P1' .IFNDF UNIT .ASKN [0:1:0] UNIT DECtape unit .2: .ASKS [::"Files-11"] P1 Files-11 (RSX) or RT-11 .SETS P1 P1[1:1] .IF P1 = R .SETT RT11 .IF P1 = F .SETF RT11 .IFNDF RT11 .GOTO 2 .; Get volume name (Foreign if RT11) and allocate tape. .SETS NAME "/FOREIGN" .IFF RT11 .ASKS [1:9.] NAME Volume name 'MCR'ALL DD'UNIT': .IF <> 1 .EXIT 2 MOU DD'UNIT':'NAME' .IF <> 1 .EXIT 2 ; ; Start operations entry. ; .10: .ASK NUTAPE Creating new tape .SETN OPNO 1. .GOSUB OPRGET .20: .GOSUB OPRSHO .GOSUB VERIFY .IFF SOPOK .GOTO 20 .IFF AOPOK .GOTO 10 ; ; End operations entry. ; .ASK DIREC Do you want a DECtape directory listing ; ; Start operations at '