YDSPMDLLST (Display a Model Object List) Command

This command provides access to a display panel to view the contents of a model object list.
ca2e87
This command provides access to a display panel to view the contents of a model object list.
Contents
Optional
YDSPMDLLST-Optional (161) YDSPMDLLST-Optional (162) YDSPMDLLST-Optional (163)
Parameters
The following are parameters for the YDSPMDLLST command.
MDLLST
The qualified name of the model object list that is displayed. Values for these parameters are as follows:
  • list name
    -- (default) The model object list name must be entered.
  • *MDLPRF
    -- Special value meaning that the model object list name is retrieved from the user profile extension record for the current user in the specified model library. The change list value is retrieved.
  • *ALLOBJ
    -- Special value meaning that a model object list is not used, but that all model objects are included in the command.
  • *USER
    -- Special value meaning that the user profile name of the current user is used as the list name for the target of the command.
  • *SELECT
    -- Special value indicating that the model object list is selected using an interactive display function.
  • *DFTCPY
    -- Special value meaning that the model object list name is defaulted to YCPYLSTRFP.
  • *MDLLIB
    -- (default) Special value meaning that the first model library found in the user's current library list is used as the model library for the list.
  • library name
    -- Model library name for the list.
LODMDL
Indicates whether the model environment is loaded before displaying the panel. Values for these parameters are as follows:
  • *YES
    -- (default) Special value meaning that the model environment is to be loaded before displaying the panel.
  • *NO
    -- The model environment is to be loaded only if required to process a particular subfile option. Note that in this case:
    • A lock is not placed on the model before the panel is displayed.
    • The model will be loaded for each subfile option that requires it and the model will be unloaded when returning to the display. In other words, you incur additional overhead each time you use a subfile option that requires the model to be loaded.
Notes
The MDLLST must exist before you run the command.
A value other than *MDLLIB for MDLLST 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.
Example
This section contains an example of the command as it might look using real data. To display model object list LST0001 from the model contained in the current library list:
YDSPMDLLST MDLLST(*MDLLIB/LST0001)