HP 3000 Manuals

SDGetAttrList [ HP System Dictionary XL Intrinsics ] MPE/iX 5.0 Documentation


HP System Dictionary XL Intrinsics

SDGetAttrList 

Retrieves all attributes defined in the dictionary structure or of a
specified attribute data type.

Syntax 

     SDGetAttrList (Dcb,AttributeType,RetrievalID,Attribute,Status)

Parameters 

Dcb                       Required input; type = DcbType 
                          This parameter passes information about the
                          dictionary to this intrinsic.  It is
                          initialized by the SDOpen intrinsic.

AttributeType             Required input by value; type = 4 byte Integer 
                          This parameter specifies the attribute data
                          type of the attributes to be retrieved.  A zero
                          may be passed for this parameter to retrieve
                          all attributes defined in the dictionary
                          structure regardless of type.  Valid values
                          are:
                            0 = All types (in no particular order)
                            1 = Alias name
                            2 = Boolean
                            3 = Character
                            4 = Floating Point
                            5 = Integer
                            6 = Variable Character

RetrievalID               Required input; Output; type = RetrievalIDType 
                          This parameter is used internally to pass
                          information between multiple calls of this
                          intrinsic, to retrieve all of the attributes in
                          the dictionary.

                          To find the first attribute, initialize the
                          first four bytes of this parameter to a binary
                          zero.  To find additional attributes, call this
                          intrinsic once for each attribute to be
                          returned.

Attribute                 Output; type = NameType 
                          This parameter returns the name of an attribute
                          for each successful call of the intrinsic.

Status                    Output; type = StatusType 
                          This parameter contains information indicating
                          the success or failure of the intrinsic call.
                          This information is detailed in Table Table
                          3-1, located in Chapter 3 of this manual.

                          If this intrinsic is successful, the Status 
                          parameter contains the following information,
                          in addition to the description contained in
                          Table Table 3-1.

----------------------------------------------------------------------
|              |                                                     |
|    Bytes     |                       Contain                       |
|              |                                                     |
----------------------------------------------------------------------
|              |                                                     |
| 17 - 20      | Internal attribute number                           |
|              |                                                     |
----------------------------------------------------------------------

Discussion 

The following restrictions apply when using this intrinsic:

   1.  Open mode--The dictionary can be opened in any mode.

   2.  Security--This intrinsic will succeed with any current scope.


MPE/iX 5.0 Documentation