Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: AUBKUP

AUBKUP.m

Go to the documentation of this file.
AUBKUP ;NIGHTLY BACKUP START-UP [ 08/13/85  3:19 PM ]
 ;IHS-OKLA CITY AREA OFFICE-LMD
 Q:$D(DTOUT)!$D(DFOUT)!$D(DUOUT)!$D(DLOUT)  G A1:+Y=1,B1:+Y=2 W !!,"Please use only ""1"" or ""2""." H 3 G MENU
A1 D ^AUCLS W !!,"THIS ROUTINE WILL START THE AUTOMATIC DAILY BACKUP PROCEDURE.....",!!!,"BE SURE TO PUT THE APPROPRIATE TAPE CARTRIDGE",!,"IN THE TAPE DRIVE BEFORE THE SCHEDULED TIME EACH DAY..",!!!
QUE S IOP="Q" D ^%AUQUE Q:'$D(AU("QUE"))  K ^%ZTSK(ZTSK),^%ZTSCH(X,ZTSK) S TIME=X
VAR X ^%ZOSF("UCI") S AU("UCI")=$P(Y,",",1),X="MGR" D ^%AUXUCI
 S ^SYS(0,"UNATTENDED BACKUP FILE")="OKC;",^SYS(0,"UNATTENDED BACKUP TIME")=TIME,^SYS(0,"UNATTENDED BACKUP RESCHEDULE")="",^SYS(0,"STARTUP","CARETAKER PRINTER")=IO,X=AU("UCI") D ^%AUXUCI K AU Q
B1 W !!!,"......",!!
VAR1 X ^%ZOSF("UCI") S AU("UCI")=$P(Y,",",1),X="MGR" D ^%AUXUCI S ^SYS(0,"UNATTENDED BACKUP FILE")="",^SYS(0,"UNATTENDED BACKUP TIME")="",X=AU("UCI") K ^SYS(0,"UNATTENDED BACKUP RESCHEDULE") D ^%AUXUCI K AU
 W "The Unattended Backup Procedure is CANCELED." Q
SBRS K DFOUT,DTOUT,DUOUT,DQOUT,DLOUT R Y:USTO I '$T W *7 R Y:5 G SBRS:Y="." I '$T S (DTOUT,Y)="" Q
 S:Y="/.," (DFOUT,Y)="" S:Y="" DLOUT="" S:Y="^" (DUOUT,Y)="" S:Y?1"?".E!(Y["^") (DQOUT,Y)=""
 Q