Previous Topic: Determining a Command’s Running Environment

Next Topic: YCHGMDLVAL (Change Model Value) Command

Commands (YADDMDLLE - YCHKMDLOBJ)

This chapter contains details for CA 2E commands YADDMDLLE through YCHKMDLOBJ. These commands appear in alphabetical order and include descriptions of their functions, parameters and allowed values, notes, and examples. Each command is also accompanied by a command diagram.

This section contains the following topics:

YADDMDLLE (Add a Model List Entry) Command

YAPYCMPCHG (Apply Component Changes) Command

YAPYMDLCHG (Apply Model Changes) Command

YAPYSYSMDL (Apply System Model Data) Command

YAPYTRNMDL (Apply Translation to Model) Command

YBLDJOBLST (Build Job List) Command

YBLDMDLLST (Build a Model Object List) Command

YCHGMDLLE (Change a Model Object List Entry) Command

YCHGMDLOBJ (Change Model Object) Command

YCHGMDLOD (Change Model Object Description) Command

YCHGMDLPRF (Change Model Profile) Command

YCHGMDLVAL (Change Model Value) Command

YCHKDTAMDL (Check Data Model) Command

YCHKFUNACT (Check Function Action Diagram) Command

YCHKFUNPAR (Check Parameter Interfaces) Command

YCHKJOBLE (Check Job List Entries) Command

YCHKMDL (Check Model) Command

YCHKMDLLST (Check a Model Object List) Command

YCHKMDLOBJ (Check Existence of Model Object) Command

YADDMDLLE (Add a Model List Entry) Command

This command allows a user to add a single model object list entry. The list may or may not exist. If it does not exist, it is created by this command.

Required

Optional

Optional

Parameters

The following are parameters for the YADDMDLLE command.

OBJNAM

The object name to be added. This parameter consists of three elements which together identify a model object. Values for this parameter are described in the following:

OBJSGT

Unique number identifier of the model object that is added. Values for this parameter are described in the following:

MDLLST

The qualified name of the model object list to which the entry is added. Values for this parameter are described in the following:

OUTFLAGVAL

This parameter specifies the initial value to be placed in the object selected flag associated with each list entry. Values for this parameter are described in the following:

OUTCPYOBJ

This parameter specifies the initial value to be placed in the copy object flag associated with each list entry. This flag is used by the Copy Model Object Command (YCPYMDLOBJ) when selecting objects to copy to a target model. Values for this parameter are described in the following:

Notes

Example

To add the Display Product Details function to model object list WRKLST, and to have the new entry flagged as selected:

YADDMDLLE OBJNAM('Product' 'Display Product + Details' *FUN)
MDLLST(*MDLLIB/WRKLST) + OUTFLAGVAL(*SELECTED)

YAPYCMPCHG (Apply Component Changes) Command

Component change processing is the process by which a change to a particular object is reflected in the model by the propagation of that change throughout the users of the changed object. The object that is changed can be a component of many other objects in the model, and this process attempts to make the repercussions visible. This command can be used to invoke this process in batch for all changed objects which were not processed interactively.

Required

YAPYCMPCHG

Parameters

The following are parameters for the YAPYCMPCHG command.

MDLLIB

The name of the model library in which component changes are applied. Values for this parameter are described in the following:

Notes

Program : YCMPCHGR1C Interface : Return code : 7 characters Original surrogate : 7 decimals Object surrogate : 7 decimals Change type : 3 characters (GEN or EDT)

Developers can use the program to include any additional processing they desire. For example, it can be used to update an external database tracking changes in the model, or to place an entry onto a model list for later resolution of the component change that has happened to a given object.

Additional information is included in the source for the exit program which is shipped in file QCLSRC in library Y2SYSRC.

Example

To apply component changes in the model library that is the highest model in the current library list:

YAPYCMPCHG MDLLIB( *MDLLIB )

YAPYMDLCHG (Apply Model Changes) Command

Upgrades a design model or models with any changes required by a new release of CA 2E. New releases of CA 2E can include modifications that must be applied to each design model before the new release of CA 2E can be used with that model. This command applies any such changes to a named model.

Required

Parameters

The following are parameters for the YAPYMDLCHG command.

MDLLIB

Name of library containing a design model to which the changes are applied. A generic name is allowed; for example, AB*. Values for this parameter are described in the following:

Notes

Example

To update the model MYMDL:

YAPYMDLCHG MDLLIB(MYMDL)

YAPYSYSMDL (Apply System Model Data) Command

Updates the system data part of a CA 2E model. Each design model contains, apart from user-defined objects, a number of the shipped system objects, such as standard program functions and default message functions. From time to time updates are issued to the system objects. This command is for applying the updates to your own models.

Required

Parameters

The following are parameters for the YAPYSYSMDL command.

MDLLIB

Name of library containing a design model. The system object part of this model is to be updated. The value for this parameter is described in the following:

Notes

Example

To update the system objects in model MYMDL:

YAPYSYSMDL MDLLIB(MYMDL)

YAPYTRNMDL (Apply Translation to Model) Command

Transposes data from a national language library into the system portion of a design model. This command translates the data in the CA 2E shipped files that are created by the Create Model Library command (YCRTMDLLIB), such as *Standard header/footer, *Built-in functions and *Program data.

Required

Parameters

The following are parameters for the YAPYTRNMDL command

MDLLIB

Name of library containing a design model to which the translations are applied. The value for this parameter is described in the following:

LNG

National language used for translation. Values for this parameter are described in the following:

Notes

Example

To translate system data files in the model MYMDL into French:

YAPYTRNMDL MDLLIB(MYMDL) LNG(*FRN)

YBLDJOBLST (Build Job List) Command

Builds a job list of selected objects in a design model. You can use this list in the following commands:

Optional

Parameters

The following are parameters for the YBLDJOBLST command.

APPCDE

Name of the application area from which the objects to be included in the job list are selected. The value for this parameter is as follows:

MDLFILE

Generic name of files whose dependent access paths and/or functions are included in the job list. Values for this parameter are described in the following:

MDLACP

Generic name of access paths that are included in the job list. Values for this parameter are described in the following:

MDLACPTYP

Specifies the type or types of access paths you want to include in the job list. Values for this parameter are described in the following:

MDLFUN

Generic name of functions included in the job list. Values for this parameter are described in the following:

MDLFUNSEL

Specifies whether the functions you want to include in the job list are those based on the selected files or those based on the selected access paths. Values for this parameter are described in the following:

ACPACT

Activity to be requested for job list entries for access paths. Values for this parameter are described in the following:

FUNACT

Activity to be requested for job list entries for functions. Values for this parameter are described in the following:

JOBLST

Qualified name of a job list where you place entries. Values for this parameter are described in the following:

LSTOPT

List replacement option. Values for this parameter are described in the following:

CUROBJ

Controls whether only current objects are included in the output list. Values for this parameter are described in the following:

Notes

Example

To build a job list of all access paths and functions in a design model:

YBLDJOBLST

To build a job list of all functions in a design model over all files and access paths, but omitting the access paths from the job list:

YBLDJOBLST

To build a job list of all logical access paths and functions in a design model which are based on files whose names start with "Order":

YBLDJOBLST MDLFILE(ORDER*) + MDLACPTYP(*LGL)

YBLDMDLLST (Build a Model Object List) Command

This command allows a user to build a model object list. The list may or may not exist. If it exists, it can be added to or replaced by taking the appropriate option on the LSTOPT parameter.

Only certain model objects can be selected for inclusion in a list. See the command diagram for a list of valid object types.

Once the list has been built, it can be used by the other model list processing commands. Normally a user will edit a list after creation using the Edit Model Object List command (YEDTMDLLST), or process entries in the list using one of the model list processing commands. See the command diagram of these commands for more details.

Parameters

The following are parameters for the YBLDMDLLST command.

OBJNAM

The object name to be added. This parameter consists of three elements which together identify a model object. Values for this parameter are described in the following:

MDLLST

The qualified name of the model object list that is built. All output is directed to the list specified in this parameter. Values for this parameter are described in the following:

LSTOPT

This parameter specifies the action taken if the list already exists in the model. Values for this parameter are described in the following:

OUTFLAGVAL

This parameter specifies the initial value to be placed in the object selected flag associated with each list entry. Values for this parameter are described in the following:

OUTCPYOBJ

This parameter specifies the initial value to be placed in the copy object flag associated with each list entry. This flag is used by the Copy Model Object command (YCPYMDLOBJ) when selecting objects to copy to a target model. Values for this parameter are described in the following:

INCSYSOBJ

This parameter allows the user to control whether system objects are included in the output list. Values for this parameter are described in the following:

CUROBJ

This parameter allows the user to control whether only current objects are included in the output list. Values for this parameter are described in the following:

FILTER

The initial output of the command can be filtered. If specified, this parameter invokes the Filter Model Object List command (YFLTMDLLST). Values for this parameter are described in the following:

Notes

Example

To build model object list MYLIST from all access paths and functions in the model contained in the current library list:

YBLDMDLLST OBJNAM( (*ANY *ALL *ACP) +
(*ANY *ALL *FUN) )

YCHGMDLLE (Change a Model Object List Entry) Command

This command allows a user to change the selection flags of a model object list entry.

Required

Optional

Optional (10)Optional (11)Optional (12)

Parameters

The following are parameters for the YCHGMDLLE command.

OBJSGT

Unique number identifier of the model object that is changed. The value for this parameter is as follows:

MDLLST

The qualified name of the model object list in which the entry to be changed exists. Values for this parameter are described in the following:

OBJSEL

This parameter specifies the value to be placed in the object selected field of the list entry. Values for this parameter are described in the following:

CPYOBJ

This parameter specifies the value placed in the copy object field of the list entry. Values for this parameter are described in the following:

Notes

Example

To change the model object list entry for the object identified by surrogate number 1100911, in model object list DEVLST in the first model library to be found in the current library list, and to flag the entry as *SELECTED for use in another list command:

YCHGMDLLE OBJSGT( 1100911 ) MDLLST + (*MDLLIB/DEVLST ) OBJSEL( *SELECTED )

YCHGMDLOBJ (Change Model Object) Command

This command provides access to certain user-definable data that is stored for each model object. The command diagram described below shows which data are available to be updated.

We recommend that you use this information to support a user-defined change control facility operating on a model.

Required

Optional

Optional (13)Optional (14)Optional (15)Optional (16)Optional (17)

Parameters

The following are parameters for the YCHGMDLOBJ command

OBJNAM

The object name to be changed. This parameter consists of three elements that together identify a model object. Values for this parameter are described in the following:

OBJSGT

Unique number identifier of the model object whose details are to be changed. Values for this parameter are described in the following:

MDLLIB

The data model that is to be edited. Values for this parameter are described in the following:

CHGTYP

Reflects the type of change that has been made to the object. Note that changing this field may also cause the Action required flag (ACTRQD) for objects that use this object to be updated. Values for this parameter are described in the following:

IPCPRC

Indicates whether users of the object have been processed to reflect the effect on them resulting from the change made to the object. A Change type (CHGTYP) of *PRIVATE or *PUBLIC recorded for the object will have an effect on its users. When the effect is established during component change processing, the impact processed flag is set to *YES. As a result, changing this flag will either cause component change processing to be performed or avoided, depending on the value to which it is set. Values for this parameter are described in the following:

PRMTYP

Promotion type to be performed on this object, as part of a change control system. Values for this parameter are described in the following:

VSNTYP

This field identifies the status of an object with respect to other members of a group of objects. A group is defined by those objects that originated (were copied) from the same object or another member of the group. This field is intended for use with a promotion procedure and identifies which version of a group is the development version, the production version, and the archive version. Values for this parameter are described in the following:

VSNSNC

This user-defined field is intended for use by a change management system. You could set it in a checkout procedure to indicate that a version of an object is in conflict with another version; for example, when an object is checked out by two users. The conflict could then be detected when you attempt to promote one of the versions. Values for this parameter are described in the following:

CHKDTE

This user-defined field is intended for use by a change management system, to contain the date a checkout procedure was run to check out the model object. Values for this parameter are described in the following:

CHKTME

This user-defined field is intended for use by a change management system, to contain the time a checkout procedure was run to check out the model object. Values for this parameter are described in the following:

CHKUSR

This user-defined field is intended for use by a change management system, to contain the user profile of the user who ran a checkout procedure to check out the model object. Values for this parameter are described in the following:

CHKLST

This user-defined field is intended for use by a change management system, to contain the name of the model object list from which the model object was checked out as part of a checkout procedure. Values for this parameter are described in the following:

CHKSTS

This user-defined field is intended for use by a change management system, to contain the checkout status of the model object when used as part of a checkout procedure. Values for this parameter are described in the following:

Example

To change the Order Details file, enter the following:

YCHGMDLOBJ OBJNAM( *NONE 'Order Details' + *FIL)

YCHGMDLOD (Change Model Object Description) Command

This command accesses an interactive panel that displays the details for a given model object. All details are display only.

For more information on using the interactive panel, see online Help for the specific panel.

Required

Parameters

The following are parameters for the YCHGMDLOD command.

OBJNAM

The name of the model object to be changed. This parameter consists of three elements that together identify a model object. Values for this parameter are described in the following:

OBJSGT

Unique number identifier of the model object that is to be changed. Values for this parameter are described in the following:

MDLLIB

The data model in which the object whose description is to be changed resides. Values for this parameter are described in the following:

Notes

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 change the Edit Order Details function, which is owned by the Order Details file, enter the following:

YCHGMDLOD OBJNAM('Order Details' 'Edit Order + Details' *FUN)

YCHGMDLPRF (Change Model Profile) Command

Certain data is stored in each data model associated with user profiles of developers. This command allows these values to be adjusted.

Required

Optional

Parameters

The following are parameters for the YCHGMDLPRF command.

MDLPRF

The model user profile name that is changed. The value for this parameter is as follows:

SSNLST

The name of the session list used when editing a model. Values for this parameter are described in the following:

LOGCHG

This parameter indicates whether changed objects are logged to the specified session list while editing the model. Values for this parameter are described in the following:

COMPCHG

This parameter indicates whether objects that use a changed object are to be flagged as having had a component changed. Values for this parameter are described in the following:

VIEWONLY

This parameter indicates whether the current user is navigating the model in *VIEW mode or *EDIT mode. Values for this parameter are described in the following:

USROPT

The Edit Model List panel supports the use of user options to be applied to subfile records. This field stores the user option file name to use. Values for this parameter are described in the following:

USROPTMBR

The member in the user options file that is used. Values for this parameter are described in the following:

MDLLST

The list used if *MDLPRF is specified on a model object list command. Values for this parameter are described in the following:

NPDFUN

The user-defined notepad function to use when using the action diagram editor. The function specified must either be an Execute External Function (EXCEXTFUN) or an Execute Internal Function (EXINTFUN). Values for this parameter are described in the following:

ADESRNMODE

This parameter provides the default for full screen mode when using the action diagram editor. Values for this parameter are described in the following:

JOBLST

When a user invokes the Submit Model Create command (YSBMMDLCRT), this qualified value can be used to determine the job list that is defaulted. Values for this parameter are described in the following:

GENLIB

The default generation library name may be specified. When a user invokes the Submit Model Create command (YSBMMDLCRT), this value will be used by default. Values for this parameter are described in the following:

SRCLIB

The default source library name may be specified. When a user invokes the Submit Model Create command (YSBMMDLCRT), this value will be used by default. Values for this parameter are described in the following:

JOBD

The default job description name to use when a user invokes the Submit Model Create command (YSBMMDLCRT). This qualified value will be used as the default. Values for this parameter are described in the following:

CRTJOBD

The default create job description name to use when a user invokes the Submit Model Create command (YSBMMDLCRT). This qualified value will be used as the default. Values for this parameter are described in the following:

SBMGENOPT

The default generation option value to use when a user invokes the Submit Model Create command (YSBMMDLCRT). Values for this parameter are described in the following:

SBMCRTOPT

The default compilation option value to use when a user invokes the Submit Model Create command (YSBMMDLCRT). Values for this parameter are described in the following:

SRNMODE

This parameter determines whether or not the default panel on the Edit Model List command (YEDTMDLLST) is displayed in full screen mode. Values for this parameter are described in the following:

GUIFLR

This parameter records the default value for the GUI folder value used when prompting the Submit Model Create (YSBMMDLCRT) command for the specified user. Values for this parameter are described in the following:

Notes

Example

To log changed objects to model list CHGOBJ and to perform component change processing the next time user KATHY edits the model:

YCHGMDLPRF MDLPRF( KATHY ) CHGLST + (CHGOBJ ) LOGCHG( *YES ) COMPCHG( *YES )