YDSPMDLOD (Display Model Object Description) Command

This command allows a user access to an interactive panel that displays the details for a given model object.
ca2e87
This command allows a user access to an interactive panel that displays the details for a given model object.
Contents
Details relate to the creation and subsequent change of the object. For more information, refer to the help text for the panel.
Required
YDSPMDLOD-Required (45) YDSPMDLOD-Required (46) YDSPMDLOD-Required (47)
Parameters
The following are parameters for the YDSPMDLOD command.
OBJNAM
The name of the object whose details are displayed. This parameter consists of three elements that together identify a model object. Values for these parameters are as follows:
  • *OBJSGT
    -- (default) Single value indicating that the object surrogate is to be used to identify the model object that is displayed.
  • *SELECT
    -- Single value indicating that the displayed object is selected using an interactive display function.
  • object owner name
    -- The character name of the object that owns the object to be displayed. Thus, for a function, the owning file would be entered.
  • *ARRAYS
    -- Special value for the product internal file *ARRAYS.
  • *MESSAGES
    -- Special value for the product internal file *MESSAGES.
  • object name
    -- The character name of the displayed object.
  • object type
    -- The object type of the object.
  • *ACP
    -- Object is of type access path.
  • *APP
    -- Object is of type application area.
  • *ARR
    -- Object is of type array.
  • *CND
    -- Object is of type condition.
  • *FIL
    -- Object is of type file.
  • *FLD
    -- Object is of type field.
  • *FUN
    -- Object is of type function.
  • *MSG
    -- Object is of type message.
OBJSGT
Unique number identifier of the model object that is displayed. Values for these parameters are as follows:
  • *OBJNAM
    -- (default) Use object name to identify the displayed model object.
  • object surrogate
    -- The surrogate number of the model object.
MDLLIB
The data model in which the object whose description is to be displayed resides. Values for these parameters are as follows:
  • *MDLLIB
    -- (default) The model is the first one to be found in the current library list.
  • model name
    -- The name of a specific data model.
Notes
A value other than *MDLLIB for MDLLIB may result in the library list being changed. If the user is currently editing a model, the switching of the library list will not occur and the command will fail. If changed during processing, the library list is changed back after execution.
  • Model objects can either be identified by object name (OBJNAM) or by object surrogate key number (OBJSGT). If the OBJNAM parameter is used, the processing program must convert to surrogate key number internally. Thus, it will normally be more efficient to use the surrogate number if this value is available. The surrogate number for an object can be obtained using the Retrieve Model Object command (YRTVMDLOBJ).
    Model object names are structured as follows:
Type
Name
ACP
File name/Access path name/'ACP'
APP
---/Application area code/'APP'
ARR
*Arrays/Array name/'ARR'
CND
Field name/Condition name/'CND'
FIL
---/File name/'FIL'
FLD
---/Field name/'FLD'
FUN
File name/Function name/'FUN'
MSG
*Messages/Message name/'MSG'
Example
To display the Edit Order Details function, which is owned by the order details file, enter the following:
YDSPMDLOD OBJNAM( 'Order Details' 'Edit + Order Details' *FUN)