Path: utzoo!mnetor!uunet!lll-winken!csustan!polyslo!csun!mst From: mst@csun.UUCP (Mike Temkin) Newsgroups: comp.os.vms Subject: Premature termination of a COM file Message-ID: <1179@csun.UUCP> Date: 6 Apr 88 22:53:41 GMT Organization: CSU, Northridge Computer Center Lines: 53 Keywords: Early termination of a COM file [Mmmmm.... ASCII (munch) (munch) :-) ] Situation: This is the first major(?) script that I have written (we started using VMS this semester). I have a script that does the following BACKUP command: $ BACKUP/REWIND/IMAGE/BUFFER_COUNT=5/VERIFY MA$DUA0: - MA$MUB0:'DATE.BCK/SAVE_SET Problem: My problem is that after either backup is done, the tape does not rewind itself and the statements in the COM file following the backup command are never executed. This means that in order to do both backups, I have to run the script twice. Question: Am I doing something wrong or is this normal? Script follows... $ ! THIS SCRIPT DOES A BACKUP OF BOTH DUA0: AND DUA1: TO $ ! MAGTAPE ON MUB0:. $ $ ! Michael Temkin Mar 7, 1988 $ $ DATE = F$EXTRACT(1,10,F$TIME()) $ WRITE SYS$OUTPUT "MOUNTING MA$MUB0:" $ INITIALIZE MUB0: BACKUP $ MOUNT/OVERRIDE=ID/FOREIGN MA$MUB0: $ WRITE SYS$OUTPUT "BEGINNING BACKUP OF MA$DUA0:" $ TEMP = "YES" $ INQUIRE TEMP "ENTER 'NO' TO SKIP MA$DUA0" $ IF TEMP .EQS. "NO" THEN GOTO NEXT $ SHOW TIME $ BACKUP/REWIND/IMAGE/BUFFER_COUNT=5/VERIFY MA$DUA0: MA$MUB0:'DATE.BCK/SAVE_SET $ DISMOUNT MA$MUB0: $ WRITE SYS$OUTPUT "Backing up MA$DUA1. Change tapes then press return." $ TEMP = "YES" $ INQUIRE TEMP "ENTER 'NO' TO SKIP MA$DUA1" $ IF TEMP .EQS. "NO" THEN GOTO END $ INITIALIZE MUB0: BACKUP $ MOUNT/OVERRIDE=ID/FOREIGN MUB0: $! $ NEXT: $ WRITE SYS$OUTPUT "BEGINNING BACKUP OF MA$DUA1:" $ SHOW TIME $ BACKUP/REWIND/IMAGE/BUFFER_COUNT=5/VERIFY MA$DUA1: MA$MUB0:'DATE.BCK/SAVE_SET $ DISMOUNT MA$MUB0: $ WRITE SYS$OUTPUT "Weekly dump completed ", F$TIME() $ END: