From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,16ff1895fcd3e20a X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,16ff1895fcd3e20a X-Google-Attributes: gid1164f8,public From: cornelius@eisner.decus.org (George Cornelius) Subject: Re: Forcing BACKUP to use a single tape Date: 1999/01/10 Message-ID: <1999Jan10.050912.1@eisner>#1/1 X-Deja-AN: 430833386 X-Nntp-Posting-Host: eisner.decus.org References: <915462197.27308.0.nnrp-08.c2d97cc4@news.demon.co.uk> X-Trace: news.decus.org 915962955 1256 CORNELIUS [192.67.173.2] Organization: DECUServe Newsgroups: comp.os.vms,comp.sys.dec In article <915462197.27308.0.nnrp-08.c2d97cc4@news.demon.co.uk>, "Martin Platts" writes: > Anyone have any ideas on forcing backup to stop a backup and return an error > code to the calling DCL batch job rather than asking for a 2nd tape via > OPCOM? > > I need to backup financial data which needs to be backed up all in one go - > not with several hours gap in between tapes and its better to fail than wait > endlessly for a new tape. I tried with /NOASSIST but it ignores it on batch. According to the online help under VMS 6.2, /NOASSIST is ignored if SYS$COMMAND is not a terminal device. I suppose you could set up a pseudoterm device which would do nothing but return EOF (CTRL/Z) to any read, something that would require reading up on pseudoterms and writing a few pages of code (although there are some public domain pseudoterm programs around that would reduce the effort to something quite reasonable). Of course, there's another idea - use $ SPAWN/NOWAIT to spawn the backup as a subprocess, and have the parent process kill the subprocess if it stops or almost stops doing I/O to the tape device for an extended period of time (as determined by watching I/O counts at the process or device level). Nowadays, reel switch behavior can be difficult to debug because it takes so long to fill up a reel or in some cases even to skip to the final EOF. Gone are the days when you could play with the location of the reflective spot on a 9-track reel to effectively create a shorter tape. With DLT's and fast skip mode enabled I suppose you could create a test reel (or many of them) from a single file that fills most of a tape and test via $ BACKUP/NOREWIND . You would have to recreate test reels after using them, though, or would need each test to look something like $ MOUNT/FOREIGN dev: ; SET MAGTAPE dev:/SKIP=FILE:3 ; ; SET MAGTAPE dev:/END_OF_FILE ; ; ; BACKUP infiles dev:saveset/NOREWIND/NOASSIST . -- George Cornelius cornelius@eisner.decus.org cornelius@mayo.edu > Martin Platts > Cheshire Datasystems Ltd.