Creating a database file requires a series of steps, outlined below and expanded on in the individual pages each step links to.
- Create or Open a DataGate Project
DataGate file definitions are contained in DataGate projects. You may create a new project, or open a new project, using the DataGate Studio File menu. When you open or create a project, Solution Explorer displays the solution in the IDE, showing a DataGate project, or a collection of projects. Source files in DataGate projects are used to create database and print files.
- Add New Database File Definition
Creates a Database File Definition for a Physical, Simple, Join, Multiformat or Print file that contains the collection of information regarding the type of file being created, and how data in the file will be accessed and stored. The record format will also be created, along with a field key, Join definition and Select/Omit node (for Join and Multiformat files only).
- Open the Database File Definition Designer
The database file definition designers show editable file definition parameters in several easy to use display panels. Or if you prefer, you may edit file definition XML code in the XML editor.
- Add Field(s) to the Record Format
Adds fields that make up a record format.
- Add Key(s) to the Record Format
Adds keys to the selected record format to determine the order and usage of how records will be retrieved from the file.
- Add Select/Omit Rule
For logical files only, adds Select/Omit Rules to define which records to Select and Omit.
- Create the Final File
Creates a new file and a member by using a database file definition in the DataGate project and creating the described file in the selected library in the desired database.
- Add Member(s)
Adds members to a file in the database to store data in the format given by the database file definition. At least one member must be specified before a file can be used in a program.
Section summary:
- Create or Open a DataGate Project
- Add New Database File Definition
- Open the Database File Definition Designer
- Add Field(s) to the Record Format
- Add Key(s) to the Record Format
- Add Select/Omit Rule
- Create the Final File
- File Types, Data Type Keywords and Parameters
- The File Definition Document Editor