[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

604.0. "Map vs FCL handling (non-existent) variant field" by ASD::HOWER (Helen Hower) Wed Jan 09 1991 18:16

I'm running into inconsistent behavior between FCL and the IMPM in their
handling of variant records.

MSL looks basically like this:
	TYPE
	   NewStatusRec = 504 RECORD
			Status = 5041 : StatusTypeALLDIAG;
			CASE Status OF
			    [ 10, 11, 19 ] :
				Recommendation = 5042 : RecommendTypeALLDIAGS ;
			END ;
		END ;
(* StatusTypeALLDIAG and RecommendTypeALLDIAGS are enumerated types *)
(*	directive...  *)
(*      request... *)
	RESPONSE RSH Permission Denied Success =  1 :
		...
	      ARGUMENT Ping local host from MCC station = 10 : NewStatusRec
		SYMBOL = RSHP_RSP_TEST1
	      END ARGUMENT;
(*            several more similar argument definitions *)
(*	END RESPONSE ; *)
	<etc>

FWIW, the effect I'm aiming for is to always display the STATUS field, but to
display the RECOMMENDATIONS field only for particular [failure] statuses; for
all other status values (like "success"), no recommendation would be displayed.

Ok, given the following two ILVs to display:
A) [  0 ] (                             |  B) [  0  ] (
      [  10 ] (                         |        [  10  ] (
          [  5041 ]         19          |            [   5041  ]             00
          [  5042 ]         63  -- c    |            )
          )                             |        )
      )                                 |

-both display correctly (or at least they do what I'd expected? :-) in FCL:

  A)    Ping remote host from MCC station = (          Status = <error message>,
                                               Recommendation = <text> ),

  B)    Ping remote host from MCC station = (          Status = Success ),

-in the IMPM, the first case works ok, but the second case causes an ACCVIO 
somewhere in the map image.   

Is this a problem with my MSL definition?  Or with the map and/or FCL?
If it's an MSL problem, how can I get the effect I'm looking for, short of 
explicitly creating a response for each option?!  (and each combination, since 
format occurs several times in a response!)  

		Helen
T.RTitleUserPersonal
Name
DateLines
604.1VERNA::V_GILBERTThu Jan 10 1991 15:018
Helen,

You found a bug.  We are not handling decoding the variant record correctly,
so the case where not all fields are returned does not work.

It will be fixed.
Thanks.
Verna