[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

2643.0. "%OA-I-AIMNOTOPN, File CM$LOCK not open and siteoaform" by TINNIE::SETHI (Ah (-: an upside down smile from Oz) Fri Apr 30 1993 07:58

    Hi All,
    
    A customer has ALL-IN-1 IOS 3.0-1 installed on an OpenVMS 5.5-1 system.
    
    The customer created a form called DIR$PER$SITE_PRINT in the OA
    application area and did a MLA.  From the AM PME option when you try to
    move it to live area you get the error message:
    
    Extracting DIR$PER$SITE_PRINT from OA$SITE_DEV_BRITISH:DEVELOP.FLB
    Checking lock status on form library . . .
    Putting DIR$PER$SITE_PRINT into oa$site_lib_british:siteoaform
    Error copying oa$site_lib_british:siteoaform to
    oa$site_lib_british:siteoaform_
    TEMP
    Form cannot be put into oa$site_lib_british:siteoaform
    
     %OA-I-AIMNOTOPN, File CM$LOCK not open
     %OA-I-LASTLINE, Error putting live version of DIR$PER$SITE_PRINT
    
    I made sure that the file spec. for the .FLB was in uppercase, it
    wasn't so I changed it, this made no difference. I than edited
    CM_PUT_FORM_IN_LIB.COM and set verify on and got the following:
    
    $       ON WARNING THEN GOTO ERROR_OUT
    $       IF P3 .EQS. "Y" THEN SET MESS/TEXT
    $       FMS/LIB/REPLACE OA$SITE_LIB_BRITISH:SITEOAFORM
    OAUSER:DIR$PER$SITE_
    PRINT
    .FRM_ED
    %FMS-F-OPENOUT, error opening
    SYS$PROD:[ALLIN1V2.SITE.LIB_BRITISH]SITEOAFORM.FLB; as output
    -RMS-E-FLK, file currently locked by another user
    
    I have looked at Global sections and pages and the values are:
    
           Summary of Local Memory Global Sections
    
        691 Global Sections Used,  98288/6712 Global Pages Used/Unused
    
    VAXB_A1MGR> mc sysgen sh gblsec
    Parameter Name            Current    Default     Min.     Max.     Unit 
    Dynamic
    --------------            -------    -------    -------  -------   ----
    GBLSECTIONS                   850        250        60      4095
    
    I thought of removing SITEOAFORM from the global section by doing a 
    <OA$FBT_REMOVE SITEOAFORM. But I thought it might not be a good idea
    since it's a live system and I hate hacking on a customers system, even
    thought this is probably quite harmless.
    
    Is there any reason why SITEOAFORM cannot be accessed ?
    
    Regards,
    
    Sunil
T.RTitleUserPersonal
Name
DateLines
2643.1SIOG::T_REDMONDThoughts of an Idle MindFri Apr 30 1993 16:469
    By any chance are the CM$FORM$LIBS records for SITEOAFORM screwed up?
    Call up the entry form and check that you have two records -- one with
    key of the actual form library name, the other prefixed with LOCK_.  CM
    attempts to lock the latter and write details about the user who is
    locking the library in the former, which should have a lock flag field
    set to 0 (if the library is available), or 1 (if it's locked by a
    user).
    
    T
2643.2There is more to this problem unfortunatelyTINNIE::SETHIAh (-: an upside down smile from OzMon May 03 1993 06:2031
    Hi Tony,
    
    Thanks for your suggestion but it's unfortunately not that simple in
    the light of further information I have obtained.  I did what you
    suggested and the lock flag bit was get to 0 and the last user access
    field was blank, it's site that has just upgraded.
    
    What we found was that for this form only we are unable to move it to
    the live area.  I asked the customer to do the following:
    
    1. write the screen definition of the form to a temp. file
    2. create a new form and copy in the screen definition and change
       the form name in the form attributes option
    3. make the element live and test
    
    when we did this we had no problem making the element live and using
    the form.  So this points to a problem with the form it's self or it's
    definition/history in CM.  We are unable to delete the form from the
    live area as we get the same error message as in the base note, the
    SITEOAFORM locked by another user (RMS error message).
    
    What we could try to do is do the deletion manually by firstly
    following the steps for the deletion procedure, than remove the form
    from the SITEOAFORM.FLB from OpenVMS by doing a $fms/library/delete
    etc.  Before I do any of this I would be grateful for your opinion and
    input.  I don't feel safe doing this because I have not found the cause
    of the problem.
    
    Thanks for your help and advise,
    
    Sunil
2643.3Element has status of "RECOVER ERROR"TINNIE::SETHIAh (-: an upside down smile from OzTue May 04 1993 03:5323
    Hi,
    
    The element lock status for this form is "RECOVER ERROR" and we are
    unable to do anything with this element.  We cannot delete it or move
    the form form development to live.
    
    What does "RECOVER ERROR" mean ?  Chris Coleman had told me to
    recompile the ALL-IN-1 TXL's and try again this made no difference at
    all. From what he was saying he had a similar problem to the one I
    have.
    
    The customer is not too happy about altering the script file to remove
    the element details from ALL-IN-1 and than delete the form from OpenVMS
    using fms/lib/delete.  The customer wants to know why this happened and
    I am unable to give an explaination.  Could someone help me out on this
    please.
    
    We have a workaround this problem I have asked the customer to change
    the named data/scripts that call this form to call the copied form.
    
    Regards,
    
    Sunil
2643.4Addition to previous noteTINNIE::SETHIAh (-: an upside down smile from OzTue May 04 1993 04:238
    Sorry I forgot to add that we had tried changing the lock status as per
    Tony's book.  When we tried to delete it the element went into "RECOVER
    ERROR" status.
    
    I just thought that I would add this just in case someone suggests this
    as a solution.
    
    Sunil
2643.5I've seen this one ...SUBURB::CLEPHANEBTue May 04 1993 12:107
    
    Using form CM$SITELOG, check the live location field. I seem to
    remember that if it is OA$SITE_LIB_BRITISH:SITEOAFORM (ie. without the
    .FLB) CM has problems copying the form to live.
    
    Bruce
    
2643.6It was the .FLB missing problem.TINNIE::SETHIAh (-: an upside down smile from OzWed May 05 1993 02:5215
    Hi Bruce,
    
    Thanks for your help this was an obsecure problem and your solution
    solved the problem.
    
    The initial error message was misleading or as the saying goes "a bad
    workman always blames his tools :-)".  I leave the choice up to you !!!
    
    %FMS-F-OPENOUT, error opening
    SYS$PROD:[ALLIN1V2.SITE.LIB_BRITISH]SITEOAFORM.FLB; as output
    -RMS-E-FLK, file currently locked by another user
    
    Regards,
    
    Sunil
2643.7SIOG::T_REDMONDThoughts of an Idle MindFri May 07 1993 14:0815
    To recover from an error:
    
    -- Check to see if there are any temp. files hanging around OA$SITE_DEV
    
    -- Decide whether or not you want to use the temp files (by putting
       them back into a forms library, or moving them to the right location)
    
    -- Adjust CM$SITELOG.LOCK_FLAG by writing a value of 0 into it. 
    
    -- Restart an edit of the element.  Everything should go OK now.
    
    The obscure nature of the invalid live location problem should be SPR'd
    so that the error message becomes a little smarter...
    
    T
2643.8How/Why was the .FLB missing ...TAV02::CHAIMSemper ubi Sub ubi .....Tue Jun 21 1994 11:5616

>    Using form CM$SITELOG, check the live location field. I seem to
>    remember that if it is OA$SITE_LIB_BRITISH:SITEOAFORM (ie. without the
>    .FLB) CM has problems copying the form to live.

One of our customers recently encountered this problem. 

My question is why/how was the form library written without the .FLB

In other words what should they do to prevent this from happening in the future
with customized elements.

Thanks,

Cb.