[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

1544.0. "CM: Diskquota error when restoring application." by JOCKEY::MARSHALLJ (Glad that the devil is red ......) Thu Oct 01 1992 19:34

    		** Problem restoring application  **
    
    Hi,
    
    Customer and I have been trying to restore an application but we are
    getting a (consistently) strange error message.  Anybody help ??
    
    The A1MJUV30_BRITISH.FGN file was written on a node called VITARA. When
    we try to rewstore this onto a node here in the UK (having copied the
    file!), using a full restore into an application area, after specifying
    the logicals as prompted by the system, it goes off to start working
    but almost immediately returns with an error message saying `Unexpected
    Quoata Error'.
    
    A trace shows this to be from CM_CHECKQUOATA.SCP.  What this seems to
    be doing is transalating a local symbol to equal `VITARA' instead of
    the correct node name, so when it checks diskquota it cannot find the
    device and records an error 62 in the trace file.
    
    The only place it can be picking this `VITARA' value from is the
    saveset.  So we thought we'd unpack it and rebuild it (from DCL) to
    eliminate this, but when we try to restore this ALL-IN-1 detects that
    it wasn't built by CM so throws it out !
    
    Can't think of any other workaround so can anyone help.
    
    Regards,
    John
T.RTitleUserPersonal
Name
DateLines
1544.1Checked with the source?AIMTEC::WICKS_AIt wasn't supposed to end this wayThu Oct 01 1992 20:018
    John,
    
    Have you tried contacting the authors of MJU either directly or
    via the European ASSETS centre?
    
    Regards,
    
    Andrew.D.Wicks
1544.2Further info/thoughts.JOCKEY::63953::John-BoyGlad that the Devil is Red !!Fri Oct 02 1992 12:01120
			
		*** Yes - wondered if it was a more general error ***

	Andy,

	Re. -1.   I have contacted Graziella and made her aware of this but I
	wondered if it was something `generic' to CM if you get my drift.

	It may also be tied in with a problem we had with MJU itself.  The original
	kit supplied was an English one which obviously failed to install on a
	British V3.0 system.  Graziella then built us a new kit for British and 
	it is this one that fails to install, giving the Diskquota problem 
	mentioned in .0 .  One thing that I have asked Graziella for clarification
	on is, when you do a backup/list of the .FGN file, it shows that some of the
	kit was still pulled from English subdirectories (see end of note).  The 
	problem this gave was when trying to restore, it prompted us for the
	application logicals.   

	For ones such as OA$LIB_BRITISH this was OK as the transalation was supplied.
	However, it also asked us for ones such as OA$LIB_ENGLISH which obviously
	don't exist on the system so it wasn't clear what we should give as the 
	transalation. In the end we thought we would try and fool it by making it 
	the same transalation as for the OA$LIB_BRITISH logical.  It didn't complain
	- but it didn't work either !!  This leads to a couple of further questions;

	1. how does the restore application decide what logicals need to be defined
	   when restoring something as an application ?
											
	2. one thing wwe tried was to unpack the saveset and manually re-build it but
	   when we did so and tried to restore this one, CM complained that it was 
	   not a valid FGN file.  So does storing an application actually put some 
     	   special info into the saveset as well.

	Given all the above, it still seems to me that this diskquota error is 
	something more generic.  From the list below you will see that VITARA is where 
	the kit was stored and its only mention is in the header info, so the fact that 
	some of the underlying directory structure may have been incorrect, I don't 
	think is relevant.

	If anyone can help, I'd be mucho apprecioso.

	Thanks,
	John

         _________________________________________________________________________

Listing of save set(s)

Save set:          CM_OA_SAVESET.FGN
Written by:        A1_VITARA   
UIC:               [000001,000014]
Date:              28-SEP-1992 18:20:36.33
Command:           BACKUP/NOLOG/COMMENT=CM:V3.0:OA:SITE 
VITARA$USER1:[ALLIN1V30_DEV.SITE.OA_STORE...]*.*;0 OA$TEMP:CM_OA_SAVESET.FGN/SAVE
Operating system:  VAX/VMS version V5.5
BACKUP version:    V5.5
CPU ID register:   0A000006
Node name:         _VITARA::
Written on:        _VITARA$DKB200:
Block size:        32256
Group size:        10
Buffer count:      17

[ALLIN1V30_DEV.SITE.OA_STORE]BRITISH.DIR;1                  1  28-SEP-1992 18:16
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH]A1MSG.DIR;1            1  28-SEP-1992 18:17
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH.A1MSG]SITE$SM.A1$MSG;1
                                                          470  28-SEP-1992 18:17
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH]DO.DIR;1               1  28-SEP-1992 18:17
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH.DO]SMREORG_JAN.SCP;1
                                                           20  28-SEP-1992 18:17
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH]FRM.DIR;1              1  28-SEP-1992 18:16
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH.FRM]EMPTY_WASTEBASKETS.FRM;1
                                                            8  28-SEP-1992 18:16
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH.FRM]SA$SKEDFORM$DEFAULT.FRM;1
                                                            9  28-SEP-1992 18:17
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH.FRM]SM_EW_SCHEDULE.FRM;1
                                                            6  28-SEP-1992 18:17
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH.FRM]SM_SKEDFORM_DEFAULT.FRM;1
                                                           12  28-SEP-1992 18:17
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH.FRM]SM_SKEDFORM_EW.FRM;1
                                                           15  28-SEP-1992 18:18
[ALLIN1V30_DEV.SITE.OA_STORE.BRITISH.FRM]SM_SKEDFORM_EW2.FRM;1
                                                            2  28-SEP-1992 18:18
[ALLIN1V30_DEV.SITE.OA_STORE]CM$APP.DAT;1                  15  18-AUG-1992 17:31
[ALLIN1V30_DEV.SITE.OA_STORE]CM$AUTH$LOCATIONS.DAT;1       27  18-AUG-1992 17:31
[ALLIN1V30_DEV.SITE.OA_STORE]CM$ETYPES.DAT;1              147  18-AUG-1992 17:31
[ALLIN1V30_DEV.SITE.OA_STORE]CM$MAF.DAT;1                  33  18-AUG-1992 17:31
[ALLIN1V30_DEV.SITE.OA_STORE]CM$SITELOG.DAT;1             321  18-AUG-1992 17:31
[ALLIN1V30_DEV.SITE.OA_STORE]ENGLISH.DIR;1                  1  18-AUG-1992 17:31
[ALLIN1V30_DEV.SITE.OA_STORE.ENGLISH]A1MSG.DIR;1            1  18-AUG-1992 17:50
[ALLIN1V30_DEV.SITE.OA_STORE.ENGLISH.A1MSG]SITE$CM.A1$MSG;1
                                                            8  18-AUG-1992 17:50
[ALLIN1V30_DEV.SITE.OA_STORE.ENGLISH]FRM.DIR;1              1  18-AUG-1992 17:31
[ALLIN1V30_DEV.SITE.OA_STORE.ENGLISH.FRM]CM$STORE$BASE$FIND.FRM;1
                                                           19  18-AUG-1992 17:31
[ALLIN1V30_DEV.SITE.OA_STORE.ENGLISH.FRM]CM$STORE$BASE$OPTIONS.FRM;1
                                                           50  18-AUG-1992 17:55
[ALLIN1V30_DEV.SITE.OA_STORE.ENGLISH.FRM]CM$STORE$SITE$FIND.FRM;1
                                                           17  18-AUG-1992 17:32
[ALLIN1V30_DEV.SITE.OA_STORE.ENGLISH.FRM]CM$STORE$SITE$OPTIONS.FRM;1
                                                           54  18-AUG-1992 17:55
[ALLIN1V30_DEV.SITE.OA_STORE]SHARE.DIR;1                    1  28-SEP-1992 18:16
[ALLIN1V30_DEV.SITE.OA_STORE.SHARE]BLP.DIR;1                1  28-SEP-1992 18:16
[ALLIN1V30_DEV.SITE.OA_STORE.SHARE.BLP]EW_CLEAN_FOLDER.BLP;1
                                                            1  28-SEP-1992 18:16
[ALLIN1V30_DEV.SITE.OA_STORE.SHARE.BLP]EW_CLEAN_FOLDER_BATCH.BLP;1
                                                            1  28-SEP-1992 18:16
[ALLIN1V30_DEV.SITE.OA_STORE.SHARE]DO.DIR;1                 1  28-SEP-1992 18:16
[ALLIN1V30_DEV.SITE.OA_STORE.SHARE.DO]EW_CLEAN_FOLDER_REPORT.SCP;1
                                                            6  28-SEP-1992 18:16
[ALLIN1V30_DEV.SITE.OA_STORE.SHARE.DO]SMREORG.SCP;1        12  28-SEP-1992 18:17
[ALLIN1V30_DEV.SITE.OA_STORE.SHARE.DO]SM_CLEAN_FOLDER.SCP;1
                                                            5  28-SEP-1992 18:17
[ALLIN1V30_DEV.SITE.OA_STORE.SHARE.DO]SM_SKEDSCRIPT_EW.SCP;1
                                                           13  28-SEP-1992 18:18

Total of 34 files, 1281 blocks
End of save set


1544.3Need BACKUP Comment!IOSG::PYEGraham - ALL-IN-1 Sorcerer's ApprenticeFri Oct 02 1992 14:466
    Note the comment in the BACKUP header - The absence of this is what is
    stopping CM restoring your rebuilt version:
    
    	BACKUP/NOLOG/COMMENT=CM:V3.0:OA:SITE 
    
    Graham
1544.4Problem found and fixedSIOG::T_REDMONDThoughts of an Idle MindFri Oct 02 1992 16:1518
    OK. I see the problem.
    
    The saveset was created on the CM development system. The problem came
    into play because the storage area was populated with some other
    elements left over after another package had been produced.  The moral
    of the story is to always use the DS option to delete the contents of
    the storage area before packaging an application.  That forces CM to
    only create sub-directories for the elements (and thus areas) which you
    want to package, rather than anything that's hanging around at the
    time.
    
    I have produced a new version of the saveset and sent ASSETS some mail
    about it.  I'll also contact the author of .0 off-line.
    
    GAP's point in .3 about the /COMMENT is very important.  CM uses the
    backup comment to make sure that it knows that the saveset is OK.
    
    Tony
1544.52 Backup COMMENTsCESARE::EIJSAll in 1 PieceThu Oct 15 1992 13:2015
    
    Hi,
    
    In addition to Graham's reply, there are 2 possible comments:
    
    	/COMMENT=CM:V3.0:OA:SITE
    	/COMMENT=CM:V3.0:OA:BASE
    
    Depending on the type of elements your packaging it's using Site/Base.
    Furtheron, the value 'OA' might vary depending on the application your
    packaging.
    
    Ciao,
    
    	Simon
1544.6Some questions regarding .0)CESARE::EIJSAll in 1 PieceThu Oct 15 1992 14:2125
    
    Hi John,
    
    A few questions:
    
    1) What ALL-IN-1 version are you running (I assume V3.0, but which     
       BaseLevel)
    2) Which ALL-IN-1 languages are installed
    3) What is the value of CM$APP.SITEROOTCODE["OA"]
    
    The reasons:
    
    Re 1): We've had the problem you described but was fixed for BL122 
           (File CM_RESTORE_DISPLAY_DETAILS.SCP)
    Re 2): The A1MJUV30_BRITISH.FGN is supposed to be restored under 
    	   ALL-IN-1/British, not any other language. If not, than that will
     	   explain the fact it's asking you to define the logicals (MJU
    	   uses existing logicals of the BRITISH application area)
    Re 3): This information is temporarily used for definition of the
    	   SITEROOTCODE.
    
    Ciao,
    
    	Simon 
    
1544.7Simon's still catching up with old topicsSIOG::T_REDMONDThoughts of an Idle MindThu Oct 15 1992 18:0913
    Simon,
    
    The problem was caused by the inclusion of some ENGLISH language
    elements in the original MJU/British saveset.  This goes to show that
    you should always delete the storage area before beginning to store
    elements for an application.  Because the saveset included the English
    stuff CM looked for ENGLISH when it attempted to restore the
    application. 
    
    After the saveset was rebuild (with CM) to include only BRITISH and
    SHARE elements the problem went away...
    
    Tony
1544.8Still interested in answer for question 1CESARE::EIJSAll in 1 PieceFri Oct 16 1992 17:2918
1544.9I got the same unexpected quota problemTAKEOF::ERNIUrsula ErniTue Dec 08 1992 18:29140
Hi,

I also wanted to restore an application on another system. I did not have the 
mixture with the languages! And still, I got the same message:

          Error occured in module:
          Displaying restore details                                 on area
          (CM_RESTORE_DISPLAY_DETAILS.SCP)                           on area

          Error details:
--->      Unexpected quota problem returned.  Please inform your
          ALL-IN-1 Manager

The device I would like to install the application is A1DISK:. The device i 
packaged the application was OA_DISK:.
I think there is something wrong with a logical. In the trace file I found:

*******************************************************************************
![SYMBOL] Symbol = #CM_TMP_LOCATION = .ROOTCODE, Value = OA_DISK:[ALLIN1]

![SYMBOL] Symbol = #CM_TABLE_DISK, Value =
![SYMBOL] Symbol = OA$TABLE:#CM_TABLE_DISK.%FIRST[], Value =
![SYMBOL] Symbol = "", Value =
![SYMBOL] Symbol = #CM_TMP_DISK, Value = OA_DISK:
![SYMBOL] Symbol = #CM_TABLE_DISK, Value =
![SYMBOL] Symbol = #CM_TABLE_DISK = #CM_TABLE_DISK #COMMA1 #CM_TMP_DISK, Value =
!                OA_DISK:
 
![SYMBOL] Symbol = #CM_RESTORE_CALC_SPACE = "FOR " #CM_TYPE_FORM ":LANGUAGE WITH
!                .LANGUAGE == #CM_TMP_AREA DO " "GET OA$FUNCTION = ""COMPUTE #CM
!               _TMP_SPACE = #CM_TMP_SPACE + "" .FILE_SIZE", Value = FOR CM$STOR
!               E$SDC:LANGUAGE WITH .LANGUAGE == #CM_TMP_AREA DO GET OA$FUNCTION
!                = "COMPUTE #CM_TMP_SPACE = #CM_TMP_SPACE + " .FILE_SIZE

![SYMBOL] Symbol = OA$TABLE:#CM_TABLE_DISK_SPACE.%FIRST[], Value =

![SYMBOL] Symbol = #CM_TMP_DISK = OA$DIR_PARSE:.DEV[#CM_TMP_LOCATION], Value = 
!               OA_DISK:

![SYMBOL] Symbol = #CM_DISK, Value = OA_DISK:
![SYMBOL] Symbol = "", Value =
![SYMBOL] Symbol = #CM_KOR = ":ID_ENTRY", Value = :ID_ENTRY
![SYMBOL] Symbol = #CM_DISK, Value = OA_DISK:
![SYMBOL] Symbol = #CM_DEVICE = FILE$.DEVICE[#CM_DISK], Value = OA_DISK:
![SYMBOL] Symbol = #CM_DISKQUOTA_KEY = #CM_DEVICE " " #CM_VMSUSR, Value = OA_DIS
!               K: OA$PRVAPP
![SYMBOL] Symbol = #CM_DISKQUOTA_KEY, Value = OA_DISK: OA$PRVAPP
![SYMBOL] Symbol = #CM_DISKQUOTA_STATUS = DISKQUOTA$:ID_ENTRY.STATUS[#CM_DISKQUO
!               TA_KEY], Value =         66
![SYMBOL] Symbol = #CM_DISKQUOTA_STATUS, Value =         66
![SYMBOL] Symbol = 70, Value = 70
![SYMBOL] Symbol = #CM_DISKQUOTA_STATUS, Value =         66
![SYMBOL] Symbol = 52, Value = 52
![SYMBOL] Symbol = #CM_DISKQUOTA_STATUS, Value =         66
![SYMBOL] Symbol = 50, Value = 50
![SYMBOL] Symbol = #CM_DISKQUOTA_STATUS, Value =         66
![SYMBOL] Symbol = 1, Value = 1
![SYMBOL] Symbol = #CM_DISP_MESS = #CM_DISP_MESS2 = CM$_QUO_PROBLEM, Value = Une
!               xpected quota problem returned. Please inform your ALL-IN-1 Mana
!               ger
*******************************************************************************
                           Application Restore Details

  Application Code:    ASS  This is a new application

  Application saveset:
  OA$SITE_DEV_SHARE:ETB_GERMAN.FGN

  No of New Areas:     2           No of elements:       14

  Root:                A1DISK:[ALLIN1]
  Siteroot:            A1DISK:[ALLIN1.SITE]

  Restore Mode:        NEW         Element Type:         BASE
  Restore method:      FULL        Destination:          APPLICATION
*******************************************************************************
Listing of save set(s)

Save set:          CM_ASS_SAVESET.FGN
Written by:        ERNI        
UIC:               [000200,000006]
Date:              23-NOV-1992 16:14:00.45
Command:           BACKUP/NOLOG/COMMENT=CM:V3.0:ASS:BASE 
		   OA_DISK:[ALLIN1.SITE.ASS_STORE...]*.*;0 
		   OA$TEMP:CM_ASS_SAVESET.FGN/SAVE
Operating system:  VAX/VMS version A5.5
BACKUP version:    V5.5
CPU ID register:   0A000005
Node name:         _DMOIS1::
Written on:        _DMOIS1$DKA300:
Block size:        32256
Group size:        10
Buffer count:      10

[ALLIN1.SITE.ASS_STORE]ASS_GERMAN.DIR;1                     1  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN]FGN.DIR;1                 1  23-NOV-1992 15:55
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN.FGN]ETB_KANTONSABKUERZUNGEN.FGN;1
                                                           12  23-NOV-1992 15:55
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN.FGN]ETB_REGION.FGN;1
                                                           12  23-NOV-1992 15:55
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN]FRM.DIR;1                 1  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN.FRM]ETB1.FRM;1            7  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN.FRM]ETB2.FRM;1            2  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN.FRM]ETB_KANTON.FRM;1
                                                            2  23-NOV-1992 15:55
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN.FRM]ETB_REGION.FRM;1
                                                            2  23-NOV-1992 15:55
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN]HLP.DIR;1                 1  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN.HLP]ETB1.MEM;1            5  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN.HLP]ETB1.RNO;1            5  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN]WPL.DIR;1                 1  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_GERMAN.WPL]ETB_HELP.WPL;1       30  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE]ASS_SHARE.DIR;1                      1  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_SHARE]COM.DIR;1                  1  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_SHARE.COM]ETB.COM;1             17  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_SHARE]DO.DIR;1                   1  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_SHARE.DO]ETB.SCP;1               8  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_SHARE.DO]ETB_INS.SCP;1           1  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_SHARE.DO]ETB_REM.SCP;1           2  23-NOV-1992 15:55
[ALLIN1.SITE.ASS_STORE.ASS_SHARE]FGN.DIR;1                  1  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_SHARE.FGN]ETB.FGN;1             12  23-NOV-1992 15:54
[ALLIN1.SITE.ASS_STORE.ASS_SHARE.FGN]ETB_LOG.FGN;1          1  23-NOV-1992 15:55
[ALLIN1.SITE.ASS_STORE]CM$APP.DAT;1                        15  23-NOV-1992 15:51
[ALLIN1.SITE.ASS_STORE]CM$AUTH$LOCATIONS.DAT;1             15  23-NOV-1992 15:51
[ALLIN1.SITE.ASS_STORE]CM$ETYPES.DAT;1                    147  23-NOV-1992 15:51
[ALLIN1.SITE.ASS_STORE]CM$MAF.DAT;1                        30  23-NOV-1992 15:51
[ALLIN1.SITE.ASS_STORE]CM$SDC.DAT;1                       222  23-NOV-1992 15:51

Total of 29 files, 556 blocks
End of save set

*******************************************************************************

Do you have any idea...

Thanks ahead for helping me


Ursi Erni

1544.10What's the value of #CM_RESTORE_SET_MAFCESARE::EIJSAll in 1 PieceWed Dec 09 1992 19:4425
    
    Hi Ursula,
    
    Can you please perform the following check:
    
    1) Modify CM_RESTORE_DISPLAY_DETAILS.SCP
    2) Search for lines:
    
            .IF OA$FORM_DISPOSE NE 2 THEN .GOTO EXIT_SCREEN
            .IF #CM_RESTORE_SET_MAF EQ 0 THEN .GOTO CHANGE_MAF_LOC
    
    3) Modify this to:
    
            .IF OA$FORM_DISPOSE NE 2 THEN .GOTO EXIT_SCREEN
            PROMPT #CM_RESTORE_SET_MAF
            .IF #CM_RESTORE_SET_MAF EQ 0 THEN .GOTO CHANGE_MAF_LOC
    
    4) Check the value shown.
    
    You can do this test in a number of ways, but I just need the value of
    symbol #CM_RESTORE_SET_MAF
    
    Ciao,
    
    	Simon
1544.11Workaround for .9)CESARE::EIJSAll in 1 PieceThu Dec 10 1992 12:23193
    
    Hi,

    The cause of the problem described in .9 is:

        - Restore Base application
        - All entries in CM$MAF (and CM$APP) exist

    (CM shows you a form in which you only have to enter 'Restore method:'
    and 'Destination:' (form CM$RESTORE$DETAILS).)

    First question: Is the 'assumption' made above correct? Are you
    restoring a Base application?

    If so, a problem exists in CM_RESTORE_DISPLAY_DETAILS.SCP. The
    attached Script fixes the problems to work around it. It explicitely
    defines #CM_RESTORE_APP_ROOT to be the value of the existing Application
    Root directory, and this value is written also to the temporary data set
    CM$STORE$MAF which is used to calculate the diskquota. All records in
    the data set are changed, even if they already exist in CM$MAF.

    Hope this helps.

	Simon



!+
!	CM_RESTORE_DISPLAY_DETAILS.SCP
!+
.LABEL START

	GET #CM_STATUS = 0

	GET #CM_RESTORE_MODULE = CM$_TRN_DISP2
	GET #CM_RESTORE_ERROR = CM$_TRN_RES_ERR
	
	GET #CM_RESTORE_APP_ROOT = "" 
	.IF #CM_RESTORE_MODE EQS "UPDATE" THEN - 
	  GET #CM_RESTORE_MANAGER = CM$APP.MANAGER[#CM_RESTORE_APP_CODE] \-
	  GET #CM_RESTORE_APP_ROOT = CM$APP.ROOTCODE[#CM_RESTORE_APP_CODE] \-
	  GET #CM_RESTORE_APP_SITEROOT = CM$APP.SITEROOTCODE[#CM_RESTORE_APP_CODE] \-
	  FORM CM$RESTORE$DETAILS /FIELDS =  RES_METHOD,RES_DES
	
	.IF #CM_RESTORE_MODE EQS "NEW" THEN - 
	  GET #CM_RESTORE_MANAGER = "" \-
	  FORM CM$RESTORE$DETAILS /FIELDS = -
	    RES_ROOT,RES_SITEROOT,MANAGER,RES_METHOD,RES_DES

	.IF OA$FORM_DISPOSE NE 2 THEN .GOTO EXIT_SCREEN
	.IF #CM_RESTORE_SET_MAF EQ 0 THEN .GOTO CHANGE_MAF_LOC

	WRITE CHANGE CM$STORE$APP %KEY = #CM_RESTORE_APP_CODE, -
			ROOTCODE = #CM_RESTORE_APP_ROOT \-
	  WRITE CHANGE CM$STORE$MAF %KEY = #CM_MAF_STORE_KEY, -
			ROOTCODE = #CM_RESTORE_APP_ROOT
	.IF #CM_RESTORE_MANAGER NES "" THEN -
	  WRITE CHANGE CM$STORE$APP %KEY = #CM_RESTORE_APP_CODE, -
			MANAGER = #CM_RESTORE_MANAGER
	WRITE CHANGE CM$STORE$APP %KEY = #CM_RESTORE_APP_CODE, -
			SITEROOTCODE = #CM_RESTORE_APP_SITEROOT
!+
! SE 19-Dec-1991
! When SITEROOT values in CM$MAF and CM$APP can be different, the following
! outcommented code should be used instead of the code in use now
!
!	FOR CM$RESTORE$AREA$DEF DO -
!	GET #CM_RESTORE_AREA_DEF = .%KEY\\-
!	FORM CM$RESTORE$AREA$DEF/MODE=CHANGE/ONCE/SAVE = #CM_RESTORE_AREA_DEF\\-
!	IFEXIT
!
!	.IF OA$FORM_DISPOSE NE 2 THEN .GOTO EXIT_SCREEN2
!
	FOR CM$RESTORE$AREA$DEF DO -
	  GET #CM_RESTORE_AREA_DEF = .%KEY\\-
	  WRITE CHANGE CM$RESTORE$AREA$DEF %KEY = #CM_RESTORE_AREA_DEF, -
	    SITEROOT = #CM_RESTORE_APP_SITEROOT
!-
!+
! Make sure all records in CM$STORE$MAF have the right values for the 
! ROOT and SITEROOT
!
!	FOR CM$RESTORE$AREA$DEF DO -
!	GET #CM_RESTORE_MAF_TMP = .AREA\\-
!	GET_SYMBOL #CM_RESTORE_MAF_TMP,#CM_MAF_SUBCODE,"_"\\-
!	GET #CM_RESTORE_DEF_SITEROOT = .SITEROOT\\-
!	GET #CM_MAF_STORE_KEY = #CM_RESTORE_APP_CODE:4 #CM_RESTORE_MAF_TMP:10\\-
!	WRITE CHANGE CM$STORE$MAF %KEY = #CM_MAF_STORE_KEY, -
!			SITEROOTCODE = #CM_RESTORE_DEF_SITEROOT 
!    	.GOTO CHECK_DUP_REC
!-
.LABEL CHANGE_MAF_LOC

	FOR CM$STORE$MAF DO -
	 GET #CM_MAF_STORE_KEY = .%KEY \\-
	 WRITE CHANGE CM$STORE$MAF %KEY = #CM_MAF_STORE_KEY, -
			ROOTCODE = #CM_RESTORE_APP_ROOT, -
			SITEROOTCODE = #CM_RESTORE_APP_SITEROOT 

.LABEL CHECK_DUP_REC
	.IF #CM_RESTORE_SET_REC EQ 0 THEN .GOTO CHECK_NEW_LOGS

	FOR CM$RESTORE$RECEIVE$DEF DO -
	GET #CM_RESTORE_RECEIVE_DEF = .%KEY\\-
	FORM CM$RESTORE$RECEIVE$DEF/MODE=CHANGE/ONCE/SAVE = #CM_RESTORE_RECEIVE_DEF\\-
	IFEXIT

	.IF OA$FORM_DISPOSE NE 2 THEN .GOTO EXIT_SCREEN3

	FOR CM$RESTORE$RECEIVE$DEF DO -
	GET #CM_RESTORE_MAF_TMP = .AREA\\-
	GET_SYMBOL #CM_RESTORE_MAF_TMP,#CM_MAF_SUBCODE,"_"\\-
	GET #CM_MAF_STORE_KEY = #CM_RESTORE_APP_CODE:4 #CM_RESTORE_MAF_TMP:10\\-
	WRITE CHANGE CM$STORE$MAF %KEY = #CM_MAF_STORE_KEY, -
			RECEIVE_AREA = .RECEIVE_AREA

.LABEL CHECK_NEW_LOGS

!+
! 10-Jan-1992 SE
!
	.IF #CM_RESTORE_SET_LOG EQ 0 THEN .GOTO SET_NEW_LOGS
!-
	FOR CM$RESTORE$LOG$DEF DO -
	GET #CM_RESTORE_LOG_DEF = .%KEY\\-
	FORM CM$RESTORE$LOG$DEF/MODE=CHANGE/ONCE/SAVE = #CM_RESTORE_LOG_DEF\\-
	IFEXIT

	.IF OA$FORM_DISPOSE NE 2 THEN .GOTO EXIT_SCREEN4

!+
! 10-Jan-1992 SE lmc
!
.LABEL SET_NEW_LOGS

	FOR CM$RESTORE$LOG$DEF DO -
	 GET #CM_RES_LOG_LOC = .LOGICAL ":" \\-
	 GET #CM_RES_LOG_DEF = .DEFINITION \\-
	 FOR CM$STORE$AUTH$LOCATIONS DO -
	  GET #CM_RES_NEW_AUTH_KEY = .%KEY \\\\-
	  .IF .LOCATION = #CM_RES_LOG_LOC THEN -
	    WRITE CHANGE CM$STORE$AUTH$LOCATIONS %KEY = #CM_RES_NEW_AUTH_KEY,-
	    SITE_TRANS = #CM_RES_LOG_DEF \\\\-
	  .IF .BASE_LOCATION = #CM_RES_LOG_LOC THEN -
	    WRITE CHANGE CM$STORE$AUTH$LOCATIONS %KEY = #CM_RES_NEW_AUTH_KEY,-
	    BASE_TRANS = #CM_RES_LOG_DEF
!-
.LABEL CHECK_QUOTAS
	GET #CM_STATUS = 0
	DO CM_RESTORE_CHECK_QUOTA
	.IF #CM_STATUS NE 1 THEN .GOTO ERROR_QUOTA

.LABEL DISPLAY_WARNING
	GET #CM_STATUS = 0
	DO CM_RESTORE_GENERAL_WARNING
	.IF #CM_STATUS NE 1 THEN .GOTO ABORT_RESTORE
	.EXIT

.LABEL EXIT_SCREEN
	GET #CM_RESTORE_ERROR = CM$_TRN_KEY0
	GET #CM_STATUS = 0
	.EXIT

.LABEL EXIT_SCREEN2
	GET #CM_RESTORE_ERROR = CM$_TRN_EXIT1
	GET #CM_STATUS = 0
	.EXIT

.LABEL EXIT_SCREEN3
	GET #CM_RESTORE_ERROR = CM$_TRN_EXIT2
	GET #CM_STATUS = 0
	.EXIT

.LABEL EXIT_SCREEN4
	GET #CM_RESTORE_ERROR = CM$_TRN_EXIT3
	GET #CM_STATUS = 0
	.EXIT
.LABEL ERROR_QUOTA
	GET #CM_RESTORE_ERROR = #CM_QUOTA_ERR
	GET #CM_STATUS = 0
	.EXIT
.LABEL ABORT_RESTORE
	GET #CM_RESTORE_ERROR = CM$_TRN_EXIT
	GET #CM_STATUS = 0
	.EXIT

!
! Author: Aidan O'Leary 
!
! Modified by: 		 | Date:                | Reason:
!-----------------------------------------------------------------------------
! Aidan O'Leary          | 24-Nov-1989 04:55pm  | Element created, please state
!                        |                      | modifications down here
1544.12Your CM_RESTORE_DISPLAY_DETAILS.SCP is workingTAKEOF::ERNIUrsula ErniSat Dec 19 1992 17:0215
Hi Simon

Thank's a lot for the script. My application is now installed.

I'd like to get some add-ons to the restore function:

By mistake I entered the device instead of the logical in the fields 
DISK_LOCATION and CUSTOM_AREA in dataset CM$SDC. You can imagine, that I could 
not restore this element. In the restore_application_report I got:
    
    Copy failed DUA2:[ERNI.A1.ASS_STORE.ASS_SHARE.FGN]ETB.FGN to 
    OA_DISK:[ALLIN1.LIB_ASS_SHARE]etb.exe
--> Error: Base file OA_DISK:[ALLIN1.LIB_ASS_SHARE]etb.exe not accessible <--


1544.13Missing quota againBERN01::MAURERFIsn't your mouse looking for cheese?Fri Feb 05 1993 17:5416
    Hi Simon,
    
    I am still in trouble with quota. This week I tried to restore
    new application on customer system. I previously installed the K701,
    then I replaced the script you mentionned on .11. I then performed the
    restore operation with the quota error, when leaving the site location
    field on the form cm$restore$details. Looking around, i found that
    #cm_vmsusr was oa$prvapp and that the disquota$ dsab was returning
    error 72 (VMS user name not found), then I checked the quota, it was
    much enough quota for oa$prvapp. On the next try, I just desable the
    quota without success. At the end, as the customer was becoming
    nervous, I removed the quota checking and my application found his
    place on the target disk. Dou you maybe have some more hints on this
    problem or should we definitly don't use quota checking?
    
    Felix
1544.14Right devices anyway?UTES09::EIJSSimon Eijs @Utrecht, 7838-2558Tue Feb 09 1993 15:1824
    
    Hi Felix,
    
    Can you please modify CM_RESTORE_CHECK_QUOTA.SCP and change the
    following from:
    
    FOR OA$TABLE:#CM_TABLE_UNIQUE_DISK DO -
      GET #CM_TMP = .%KEY\\-
      GET_SYMBOL #CM_TMP,#CM_TMP1," "\\-
      GET #CM_DISK = #CM_TMP1\\GET #CM_LIMIT = #CM_TMP\\-
    
    to:
    
    FOR OA$TABLE:#CM_TABLE_UNIQUE_DISK DO -
      GET #CM_TMP = .%KEY\\-
      GET_SYMBOL #CM_TMP,#CM_TMP1," "\\-
      GET #CM_DISK = #CM_TMP1\\GET #CM_LIMIT = #CM_TMP\\-
      PROMPT #CM_DISK \\-
    
    and check if the disk dispolayed exists on node you're restoring on. 
    
    Ciao,
    
    	Simon
1544.15More on quota problemBERN01::MAURERFIsn't your mouse looking for cheese?Thu Feb 11 1993 11:2218
    Hi Simon,
    
    I didn't apply your patch, but I got more information yesterday on this
    problem. I was on a customer site restoring a new application. As
    ALL-IN-1 was asking for authorized location, I interrupted the
    restoration process (with keypad 0) and then defined my logicals (which
    I forget before). On the second try I got the quota problem. Then I
    commented out quota checking on CM_RESTORE_DISPLAY_DETAILS.SCP and the
    next restore pass went ok. I had one more application to restore and 
    before retoring the next application area, I deleted the modified
    CM_RESTORE_DISPLAY_DETAILS.SCP. The following application restore has
    been ok too.
    
    This means that the restoration process leaves some informations
    somewhere, which are not deleted when interrupted. Is this right? Is
    your patch fixing this problem?
    
    Felix