CA 2E lets you use SQL in place of or with DDS in data definition statements. You use SQL to define tables, views, rows, and columns, rather than IBM i physical files, logical files, records, and fields.
You can implement SQL at both the system level and the model level. If you:
The i OS operating system contains the execution objects necessary to execute applications you generate with SQL. However, if you want to generate and compile applications that use SQL, you must have:
To use SQL in a model environment, an SQL collection, equivalent to an IBM i library, must be associated with the model library. The YCRTMDLLIB command can automatically create the SQL collection. This command includes the SQLLIB parameter which lets you create the collection for a particular model.
You can create an SQL collection for an existing model with the Create SQL Library (YCRTSQLLIB) command. This command updates the YSQLLIB model value for the associated model. You then use the Change Model Value (YCHGMDLVAL) command to update the YDBFGEN model value to SQL.
For more information about:
CA 2E lets you use DDL in place of or with DDS in data definition statements. You use DDL to define tables, indexes, rows, and columns, rather than IBM i physical files, logical files, records, and fields. There is no view generation when DDL is used as generation method.
You can implement DDL at both the system level and the model level. If you:
The i OS operating system contains the execution objects necessary to execute applications you generate with DDL. However, if you want to generate and compile applications that use DDL, you must have:
To use DDL in a model environment, an SQL collection, equivalent to an IBM i library, must be associated with the model library. The YCRTMDLLIB command can automatically create the SQL collection. This command includes the SQLLIB parameter which lets you create the collection for a particular model.
You can create an SQL collection for an existing model with the Create SQL Library (YCRTSQLLIB) command. This command updates the YSQLLIB model value for the associated model. You then use the Change Model Value (YCHGMDLVAL) command to update the YDBFGEN model value to DDL.
For more information about:
Note: In earlier releases of CA 2E, it was only possible to create SQL/DDL related tables, views, and indexes into SQL Collections. However, the access path generation process has now been modified to enable creation of SQL/DDL tables, views, and indexes into normal libraries, in addition to SQL Collections. The SQL/DDL generation has now been modified to do the following tasks:
|
Copyright © 2014 CA.
All rights reserved.
|
|