Commands (YADDMDLLE - YCHKMDLOBJ) › YCHGMDLVAL (Change Model Value) Command › Model Values Grouped By Role › Design Option Values › Unchangeable Model Values › Example
Example
To change the design standard to CUATEXT:
YCHGMDLVAL MDLVAL(YSAAFMT) + VALUE(*CUATEXT)
YCHKDTAMDL (Check Data Model) Command
Check data model is a process which reports on any integrity issues within a model.
Any integrity issues found are listed on the spooled output. The messages indicate the surrogate numbers that are in error, as well as the file in which the errors were found. Contact Product Support if any errors are reported by the Check Data Model command.
Optional

Parameters
The following are parameters for the YCHKDTAMDL command.
MDLLIB
Specifies the name of a CA 2E model to check for integrity. Values for this parameter are described in the following:
- *MDLLIB—(default) Special value meaning that the first model library in the library list is to be used.
- model library name—The name of the model library over which an integrity check should be run.
Example
To examine objects in model library UURMDL for corruption:
YCHKDTAMDL MDLLIB(UURMDL)
YCHKFUNACT (Check Function Action Diagram) Command
This command allows a user to analyze the action diagram of a list of functions. Only functions that appear on the input model list are processed.
A report provides details of any errors found. Functions that contain errors may optionally be added to an output model list.
Required



Parameters
The following are parameters for the YCHKFUNACT command.
MDLLST
The qualified name of the model object list that contains the functions to be checked. Values for this parameter are described in the following:
- *MDLPRF—(default) 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.
- *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.
- list name—The model object list name must be entered.
- *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—The model library name for the list.
option
Specifies the action to be taken if an error is found in an action diagram. Values for this parameter are described in the following:
- *PRINT—(default) The error is written to a report.
- *EDIT—The action diagram of the function that has the error is to be edited. The program will position to the first offending action diagram block to allow the user to correct the problem.
- *REFRESH—The title of each action element of the action diagram is examined (they are calls to other function or messages). If the title is out of date, for example because the referenced function or message has been renamed, it is refreshed.
Outlst
The name of the model object list that receives output from the command. Values for this parameter are described in the following:
- *NONE—(default) Special value meaning that no outlist processing is to be performed.
- list name—The model object list name is to be used as output.
outlstopt
This parameter specifies the action taken if the output list already exists. Values for this parameter are described in the following:
- *REPLACE—(default) The existing model object list should be replaced with the output from this command.
- *ADD—The existing model object list should be augmented with the output from this command.
Example
To check the action diagrams of all functions contained in the model object list APLIST in the current model library and print a report of all errors found:
YCHKFUNACT MDLLST(*MDLLIB/APLIST)