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

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

936.0. "directives SUSPEND and RESUME not possible" by TENERE::BOSSER () Thu Apr 18 1991 12:54


I need to implement a directive SUSPEND in an Access Module that I am developing.

My dictionary, Parse Table and Access Dispatch Table are OK.

I can access to the right routine 'mcc_efd__suspend_efd' of my AM when I am in
Test Bed Driver (using commands 'deposit verb 16',
'deposit inentity ...','deposit attribute 10' and 'call access').

In the Test Bed Driver, when I display the content of the Function Dispatch
Table (using 'DUMP /FUNCTION'), the dispatch entry for the verb SUSPEND
(MSL code 16) is not displayed. Same thing for the verb RESUME (MSL code 17)
whose I will need.

So, when I submit the directive 'SUSPEND SYSTEM toto EFD titi'in MCC,
I received the error message :
   %MCC-E-NOTFOUND,  unsupported combination of verb, entity, partition

I think that it is a message returned by the Function Dispatcher
which does not found the dispatch entry for the verb SUSPEND. I have not tried 
to submit the directive RESUME, but it seems to be the same problem.
Right ? 

How can I do, because I need to offer these 2 directives.

Thanks in advance,

Ren�e 
T.RTitleUserPersonal
Name
DateLines
936.1Enroll the Control_FMTOOK::KOHLSRuth KohlsThu Apr 18 1991 13:5816
>I think that it is a message returned by the Function Dispatcher
>which does not found the dispatch entry for the verb SUSPEND. I have not tried 
>to submit the directive RESUME, but it seems to be the same problem.
>Right ? 
>
>How can I do, because I need to offer these 2 directives.

For now, and until you hear otherwise, Enroll the control fm to pass
these verbs from PM to AM.  do this from FCL or TBD by:

	>enroll mcc_control_fm

Ruth

PS.  I'm hoping you will "hear otherwise" relatively soon, but I don't know
when.
936.2Now I'm *really* confused.TOOK::MCPHERSONi'm only 5 foot one...Thu Apr 18 1991 14:5225
>
>For now, and until you hear otherwise, Enroll the control fm to pass
>these verbs from PM to AM.  do this from FCL or TBD by:
>
>	>enroll mcc_control_fm
>
>

I don't understand... How is enrolling (re-enrolling) the Control FM going to
fix this problem? 

I just ran into the same problem with one of our SVs on Friday.   It *looked* 
like either the Historian or Export FM was intercepting the call intended for
an AM.   I didn't have a copy of their code here, so it was (is) hard to
diagnose.  

After talking with Jill, I had them modify their INIT routine to put an entry
in the FM dispatch table for the SUSPEND and RESUME functions for their AM.  
I don't think that's the *right* thing to be doing because that means that they
will NEVER be able to use the HDR or EXPORT FMs (due to dispatching from
most->least specific...)

Can someone shed more light on these SUSPEND/RESUME issues?   I'm a little
confused...

936.3move your entries to the FM tableTOOK::CALLANDERThu Apr 18 1991 17:176
Where you do your enrolls in the module init entry point, split the
table into two tables (in the vector file) and have the init enroll
suspend and resume in the function table instead of the access table.
this will work (just delete  the dispatch table and re-enroll everything).

This will get you going for now.
936.4627.* describes a similar problemSIEVAX::TMJThe meek won't want itFri Apr 19 1991 04:310
936.5The Functional Module is working !TENERE::BOSSERFri Apr 19 1991 06:2313
Hello Everybody,

I have change the INIT entry point of my Access Module, including 2 calls to
mcc_enr_enroll, one with MCC_K_FUNCTION and the other with MCC_K_ACCESS,
but using the SAME Dispatch Table (and same Vector file).

It's working ! Thanks a lot for your help.

I can access to the right routine mcc_efd__suspend_efd, but I suppose
my EFD Access Module is no more an AM but a Functional Module. Is it right ?
Is it actually impossible to implement a SUSPEND directive in an Access Module ?

Ren�e
936.6I'm still a little worried.TOOK::MCPHERSONi'm only 5 foot one...Fri Apr 19 1991 09:4214
>                      <<< Note 936.5 by TENERE::BOSSER >>>
>                    -< The Functional Module is working ! >-
>

Would you check one thing:  Could you see if you now can get HDR and EXPORT to
work with your MM.   They use the same Verbs (SUSPEND and RESUME) and although
they should be parsed as multi-word (i.e. SUSPEND RECORDING, RESUME RECORDING), 

I got the impression that your new FM dispatch entry would *always* preclude
the HDR/EXPORT verbs from being accessed....

Am I worrying about nothing?  

/doug
936.7different verb codesTOOK::CALLANDERFri Apr 19 1991 15:264
Doug, the suspend and resume verbs use different verb codes over the
call interface then suspend recording and resume recording. The dispatcher
will not get them confused.

936.8function table ->control_fm-> access tableTOOK::KOHLSRuth KohlsMon Apr 22 1991 12:3136
�         <<< Note 936.2 by TOOK::MCPHERSON "i'm only 5 foot one..." >>>
�                       -< Now I'm *really* confused. >-
�
�>
�>For now, and until you hear otherwise, Enroll the control fm to pass
�>these verbs from PM to AM.  do this from FCL or TBD by:
�>
�>	>enroll mcc_control_fm
�>
�>
�
�I don't understand... How is enrolling (re-enrolling) the Control FM going to
�fix this problem? 
�

I don't know of any problem enrolling both an AM and and FM dispatch table 
from the FM INIT routine.  (IF you think you've found one, please post or
send evidence.) If you want to do this, you will have to make
several calls from this routine, one per FM table to be enrolled, and one
per AM table to be enrolled.

*Then, if the FM is not making the mcc_call_a itself Control FM must be 
there (for now) to do its pass-through function. *

BUT for MCC to have a generic entity function layer (FM), and a particular 
entity access layer, ALL FMs MUST USE mcc_call_fm.  So, you need Control (for 
now) and FMs are strongly encouraged (if not required) to always use mcc_call_F.

Control FM does include Suspend and Resume.  When Control FM is no longer
required, these two directives will be searched for in the AM dispatch table 
if not found in the FM table.  

I hope this clarifies the situation, and that no enrollment bugs are popping
up!

Ruth