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 |
Hello, In the case of partial success of a Show or Set, I may receive several error messages which is related to different attributes. The problem is that there exist more than 50 possible error codes, but only 12 "Reason Codes" (related to one attribute) in DECmcc defined in mcc_interface_def.h. #define MCC_K_REASN_SUCC_OP 0 #define MCC_K_REASN_NO_SUCH_ATTR 1 #define MCC_K_REASN_ATTR_NOT_GET 2 #define MCC_K_REASN_ATTR_NOT_AVAIL 3 #define MCC_K_REASN_NOT_SETVALATTR 4 #define MCC_K_REASN_INV_VAL 5 #define MCC_K_REASN_ATTR_NOTSET 6 #define MCC_K_REASN_PART_ATM 7 #define MCC_K_REASN_ACC_DEN 8 #define MCC_K_REASN_CONS_VIOL 9 #define MCC_K_REASN_DUPL_VAL 10 #define MCC_K_REASN_ATTR_OP_FAIL 255 Is it possible to extend the set of Reason Codes, or do I need to use the predefined set ? Another problem: May I change the MSL definition for the Partial success response for a Show or Set directive ? I have carefully read the SRM chap 15 Common and standard definition SHOW and SET templates, but could not find the answer to this question for sure : I want to add an argument to the MCC_K_SHOW_SOME (or MCC_K_ARG_SET_INCOMPLETE) response other than MCC_K_ARG_SHOW_VALUES (respectively MCC_K_ARG_SET_LIST) . Is this possible ? Best regards and thanks for a quick response. Catherine
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2607.1 | ReasonCodes are fixed; practically, MSL for SET and SHOW may not be changed | MAVIC::D_MOORE | Thu Mar 26 1992 09:48 | 21 | |
Catherine, "Is it possible to extend the set of ReasonCodes?" No, the ReasonCodes cannot be extended. They are essentially a registered enumeration and are known across the system -- they are not entity specific. Since DECmcc does not "really" have registered enumerations yet, these codes are known, and hardcoded, in the current implementation. The only way to extend them at this time is to submit an ECO to the SRM and, once it is approved, modify the code in the system to recognize the new codes. "May I change the MSL ... for a Show or Set directive ... to add an argument." At this time, no, additional arguments may not be added to Set or Show directives. In theory, there is no reason why not, except that the current system will not accept them. The Set and Show directives are attribute oriented and the PM's (for example) will not allow any arguments other than the attribute list. One module in DECmcc has, in fact, added an argument to the Show directive, but that has made the interface a private interface and a Show can not be done from the PM level to that module. - Dave |