Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
- From the
Data View Explorer, right-click a data view entry.
- On the context menu, click
Add, and then select a data source type from the context menu.
- Either type the name of the new data source into the
Name field, or accept the default name. For reference purposes, you can click
Load to see a list of existing data sources. Remember that in most cases, a data source name must match the name of the data view.
See
Data Source Files for details.
- Click
OK to create the file and add it to the data view.
- Click
Exit to close the dialog box.
- From the
Data View Explorer, double-click the new data source to open the AMB text editor where you can enter the appropriate code.
Note: With SQL SCHEMA data sources, instead of coding the file, you also have the option to assemble a new data source file using
the SQL Schema Maintenance dialog box. See
To define or modify a SQL SCHEMA file for details.
- Press
Ctrl+s to save the coded data source; then close the editor.
Note: AppMaster Builder saves the new data source in the appropriate project\group subdirectory.
- Back on the
Data View Explorer, right-click the data view entry that contains the new data source file; then select
Refresh from the context menu.
- If you have created a new PSB file and have DBD and/or DDI IMS DB files to add as well, right-click the data view's
PSB Files entry; then select
Add Referenced DBDs and IMS DDI from the context menu.
- If you have coded a new SQL SCHEMA file, right-click the data view's
SQL SCHEMA Files entry, select
SQL Schema Maintenance from the context menu, and click
OK. This adds referenced SQL DDL to the data view.
Notes:
- For information on coding DDI VSAM data source files, see
Coding DDI VSAM Sources.
- For information on coding DDI IMS DB data source files, see
Coding DDI IMS DB Sources
- You can optionally create new sources outside of the AppMaster Builder environment. Be sure to save all new sources in their
appropriate project\group subdirectories. See the
Data source locations section in the
Data Source Files topic for details.