

Creating and Managing Your Model › Creating a CA 2E Design Model › Creating a Model
Creating a Model
You create a model library by entering the YCRTMDLLIB command and its required parameter, MDLLIB, followed by any optional parameters for model values you want to set explicitly. If you do not set a model value explicitly, the system uses the default parameter value to create the model library.
For example, to create a model (INVMDL) for an inventory control system that uses SQL to define CA 2E access paths and explicitly defines the descriptive text for the model, the object prefix, and the values list prefix:
- Enter the command with the appropriate parameters:
YCRTMDLLIB MDLLIB(INVMDL) +
GENLIB(INVGEN) SQLLIB(INVSQL) +
SYSTEXT(inventory-control-system) +
OBJPFX(IN) VLSPFX(IN) DBFGEN(*SQL)
This example includes the following optional parameters:
- SQLLIB(INVSQL)—Sets the name of the library into which the SQL collection for database implementation is to be placed.
- SYSTEXT(‘Inventory Control System’)—Sets the model text value (YMDLTXT).
- OBJPFX(IN)—Sets the application object prefix for all member names that contain source generated by CA 2E from the model.
- VLSPFX(IN)—Sets the values list object prefix added to names for all objects used to implement the CA 2E values list facility.
- DBFGEN(*SQL)—Sets the default method for implementing CA 2E access paths as database objects to SQL.
- When you complete the parameters, execute the command by pressing Enter.CA 2E builds the model library using the parameters you specified. When the command finishes, the panel displays the following message:
Model library (INVMDL) created
Copyright © 2014 CA.
All rights reserved.
 
|
|