1
$ @(#)midfillbck.com 19.1 (ESO-IPG) 02/25/03 14:32:20
2
$ !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4
$ ! command procedure MIDFILLBCK.COM
6
$ ! IPG ESO - Garching 870706, 910312 K. Banse
7
$ ! IPG ESO - Garching 881215 C.Guirao
8
$ ! IPG ESO - Garching 931007 C.Guirao
10
$ ! fill the MIDAS directories from the export backup file
11
$ ! which has been written with MIDEXPORT.COM
13
$ !----------------------------------------------------------
15
$ ! get logical assignments for MIDAS stuff
16
$ IF P1 .NES. "" THEN GOTO P1_OK
17
$ IF MIDVERS .NES. "" THEN GOTO CHECK_P2
18
$ WRITE SYS$OUTPUT "We need the MIDAS version (e.g. 93NOV) as 1. Parameter ..."
19
$ WRITE SYS$OUTPUT "or MIDVERS must be defined previously"
27
$ IF P2 .NES. "" THEN GOTO P2_OK
28
$ IF MIDASHOME .NES. "" THEN GOTO START
29
$ WRITE SYS$OUTPUT "We need the MIDAS home (e.g. MIDAS) as 2. Parameter ..."
30
$ WRITE SYS$OUTPUT "or MIDASHOME must be defined previously"
38
$ INQUIRE/NOPUNCT BCKFILE "enter backup file, (e.g. 93N08.BCK) "
43
$ SET PROTECTION=(G:RWE,W:RWE)/DEFAULT
47
$ ! fill the directories MID_DISK:['MIDASHOME'.'MIDVERS'...]
49
$ SET DEF MID_DISK:['MIDASHOME'.'MIDVERS']
51
$ BACKUP/NEW_VERSION/SELECT=([PMIDAS.'MIDVERS'...]*.*) 'BCKFILE'/SAV -
52
MID_DISK:['MIDASHOME'.'MIDVERS'...]*.*
54
$ ! get the logical assignments
55
$ SET DEF MID_DISK:['MIDASHOME'.'MIDVERS']
56
$ @ MID_DISK:['MIDASHOME'.'MIDVERS'.MONIT]MIDLOGS
59
$ PURGE/LOG MID_DISK:['MIDASHOME'.'MIDVERS'...]