[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

753.0. "Encoding Seq's of Records" by LEVERS::CIARFELLA (Saabless and happy) Tue Feb 26 1991 21:40

This is a related question to note 206 but since it deals with SEQUENCES 
of records I thought it would be best to start a new entry.

In my AM I'm trying to encode an attribute which is a sequence of records.  
I'm not sure what the ILV ids should be for each record entry and the fields 
within each record.  My latest attempt is presented below.  

Am I close or am I meandering around Robin Hood's barn?  Specifically, am
I correctly identifying each instance of the DevConfigType record and,
likewise, each field with the record?

 TYPE
    DevConfigType = 1090 RECORD
	FRU Type     = 1 : FruType ;
	FRU State    = 2 : FruStateType ;
	FRU ID       = 3 : FruIDType;
	FRU Revision = 4 : FruRevisionType ;
        END;

 TYPE
    DeviceConfigurationType = 1091 SEQUENCE DevConfigType;


	ATTRIBUTE Device Configuration = 43 : DeviceConfigurationType
		ACCESS = NONSETABLE, 
		DISPLAY = TRUE, 
		SYMBOL = CONC_DEVICE_CONFIGURATION,
		CATEGORIES = (CONFIGURATION)
                (* PRIVATE
                   NATIVE_CODE = %X'0026 829F',
                   END PRIVATE *)
		(* Description: the device configuration	*)
	END ATTRIBUTE Device Configuration;

The ILV dump is as follows:

ILV dump of OUT_P:

[  1 ] (
    [  1 ] (
       [  43 ] (			-- device configuration
            [  1 ]             0f
            [  3 ]             00
            [  4 ] (
                [  1 ] (		-- Is this ID correct?
                    [  1 ]                     07		-- type
                    [  2 ]                     01		-- state
                    [  3 ]                     00		-- id
                    [  4 ]                     01		-- revision
    			-- Are the field ids correct?
                    )
                [  2 ] (		-- Is this ID correct?
                    [  1 ]                     01
                    [  2 ]                     01
                    [  3 ]                     01
                    [  4 ]                     00
                    )
                [  3 ] (		-- Is this ID correct?
                    [  1 ]                     02
                    [  2 ]                     01
                    [  3 ]                     02
                    [  4 ]                     00
                    )
                )
            )
        )
    )
AES dump of ENTITY OUT:

depth=1 class code= 50 instance =


CONCENTRATOR 08-00-2B-14-13-8D
AT 26-FEB-1991 18:09:37 Status

Examination of attributes shows:

%MCC-E-NOENTITY,  no corresponding entity instance exists
T.RTitleUserPersonal
Name
DateLines
753.1use SEQUENCE OFTOOK::HAOWed Feb 27 1991 12:3615
    Hello there,
    
    In MCC, our support of the SEQUENCE datatype does not allow its
    basetypes to be repeated.  In other words, in your datatype of
    SEQUENCE of RECORD, you can only encode a single record.  Will
    the SEQUENCE OF datatype work for you instead since you only have
    a single basetype?
    
    Assuming that you do switch to using SEQUENCE OF, your IDs for each
    element of the SequenceOf need to be 1's only, and not incremented
    for each element.  Your Record field IDs are correct.
    
    Christine
    
    
753.2SEQUENCE OF worksLEVERS::CIARFELLASaabless and happyWed Feb 27 1991 14:385
    
    Thanks, Christine.  I used SEQUENCE OF and now it works great.

    Paul C