[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

2551.0. "Can other verbs use the attrib_list data type for an argument?" by TAEC::SILVA (Carl Silva, TBG Eng, SAT-0/C-H6, DTN:828-5339) Thu Mar 12 1992 05:48

	Is it possible for verbs other than SET to use the Attrib_list for
input arguments?  I would like to define the following:

	DIRECTIVE Sql_search = 270 :
		DIRECTIVE-TYPE = MODIFY,
		DISPLAY = TRUE,
		SYMBOL = VERB_SQL_SEARCH,
		CATEGORIES = (CONFIGURATION),

	REQUEST
		ARGUMENT Attribute Values = 1 : Attrib_List
			ECHO = TRUE,
			DISPLAY = TRUE,
			REQUIRED = FALSE,
			DEFAULT = NO DEFAULT,
			SYMBOL = ARG_SQL_SEARCH_VALUE_LIST
              END ARGUMENT Attribute Values;
	END REQUEST;

	RESPONSE Sql_search Success = 1 :
              SYMBOL = SQL_SEARCH_SUCCESS,
              TEXT = "Examination of summary attributes shows :",
                ARGUMENT Arg Summary Attributes = 1 : Attrib_List
                        DISPLAY = TRUE,
                        SYMBOL = ARG_SQL_SEARCH_VALUES
                END ARGUMENT Arg Summary Attributes;
        END RESPONSE Sql_search Success;

	EXCEPTION Attributes Not Read = 384 : (*change*)
		SYMBOL = ATTRS_NOT_READ,
		TEXT = "Data base error while reading rule information.",
		ARGUMENT MIR Status = 18 : MCCError
			SYMBOL = ARG_MIR_STATUS
		END ARGUMENT MIR Status;
	END EXCEPTION Attributes Not Read;

	END DIRECTIVE SQL_SEARCH;

	Is this possible?  Or is there another way I can achieve the same
funcitonality?

	Carl
T.RTitleUserPersonal
Name
DateLines
2551.1YesTOOK::KOHLSRuth KohlsMon Mar 16 1992 10:168
>	Is it possible for verbs other than SET to use the Attrib_list for
>input arguments?  

Yes. The SRM just specifies where you are required use it, not where you
shouldn't.

Ruth K.
2551.2Yah but...TAEC::SILVACarl Silva, TBG Eng, SAT-0/C-H6, DTN:828-5339Tue Mar 17 1992 04:3317
	RE: .1,

>>	Is it possible for verbs other than SET to use the Attrib_list for
>>input arguments?  
>
>Yes. The SRM just specifies where you are required use it, not where you
>shouldn't.

	Does it always have to be a MODIFY verb or can it also be an ACTION
verb?  	When I try to use Attrib_List, my directive will not accept any
arguments like my SET does.  Is there anything hard-coded in the FCL PM to
recognize the valid/invalid verbs that can use this data type as an argument?

	I seem to be having some difficulties with this and I really appreciate
any and all help!

	Carl
2551.3Help?TAEC::SILVACarl Silva, TBG Eng, SAT-0/C-H6, DTN:828-5339Thu Mar 19 1992 06:398
>      -< Can other verbs use the attrib_list data type for an argument? >-
>
>	Is it possible for verbs other than SET to use the Attrib_list for
>input arguments?  I would like to define the following:

	Has anyone doen this before?

	Carl
2551.4Help?TAEC::SILVACarl Silva, TBG Eng, SAT-0/C-H6, DTN:828-5339Thu Mar 19 1992 12:3830
	RE: .1,

>>      -< Can other verbs use the attrib_list data type for an argument? >-
>>
>>	Is it possible for verbs other than SET to use the Attrib_list for
>>input arguments?  I would like to define the following:
>
>	Has anyone done this before?

	I can't get this to work.  I keep getting:

MCC> sql_search sql x demochar2 = 2
%MCC-W-ARGUNKNOWN, unknown argument DEMOCHAR2
MCC> sql_search sql x demochar2 = 2
%MCC-W-ARGUNKNOWN, unknown argument DEMOCHAR2
MCC> sql_search sql x total_mods = 1
%MCC-W-ARGUNKNOWN, unknown argument TOTAL_MODS
MCC> sql_search sql x

SQL LOCAL_NS:.x
AT 1992-03-19-17:25:18

An error occurred while encoding the TT package
                             ILV Status = %MCC-E-NOPARAMLIST, no parameter list
                                          was supplied in this ILV buffer
MCC> 

	Does anyone have any ideas?  8-(

	Carl
2551.5Another Try.TOOK::KOHLSRuth KohlsThu Mar 19 1992 15:5819
OK.  I looked through the SRM to verify what I remembered and there is
no reason given in the places I looked why you shouldn't use Attrib_list as
the data type of an Action Directive. Then I talked to Jill Callander. (You 
corresponded with her on this issue before?) Jill says that the 
support for doing what she now understands you want 
to do is "mostly" there, the arguments are getting parsed but not 
passed anywhere, which is why you are getting that error message.

Given this information, I think you ought to try a different definition
in your .MS for your request arguments, if  changing the directive type
is not possible.  Changing the request argument will lead at least to
a different command line syntax, and different argument extraction from In_P. 

IF my information from Jill is incorrect, please send mail, to me and to Jill.  
I find that even with an automatic extraction tool I miss too much in 
the notes files and so respond too slowly, even with a friendly and
watchful moderator.

Ruth K.
2551.6Thanks!TAEC::SILVACarl Silva, TBG Eng, SAT-0/C-H6, DTN:828-5339Fri Mar 20 1992 03:235
	RE: .5,

	Thanks for the reply, you've given me a few ideas to try.

	Carl