Previous Topic: Generation Library

Next Topic: Prototyping an Application

SQL Collection

CA 2E lets you use SQL in place of or along 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: