[ |../../index.htm#lansa/insbbc_0018.htm]
You are here:
Step 4. Make the file Operational
Having defined the file and its fields and added the required Repository features, you need to create the I/O module.
1. Return to the File Control Menu.
|
|---|
|
2. Select the option to Make new or amended file definition operational.
3. Nominate the file you wish to work with via the Select File to Work With screens.
4. When you have selected your file, the Create/Recreate a File from its Definition screen is displayed. The Job Name defaults to the File Name.
|
|---|
|
5. Press Enter to submit the job.
When the job has been completed successfully, the I/O module created will include all the file and field validations, default values, batch control logic, triggers and so on, that you have specified.
When LANSA creates a file it will make the record format name the same as the file name. If you intend to write RPG programs to access files created using LANSA, you can either:
- change the file's record format name via the Database File Attributes screen (selected from the File Definition Menu) before making the file definition operational
or
- rename the file record format within the RPG program itself.
You will find more information about creating files in the LANSA for i User Guide:
- Create a New File Definition
- Fields in the File Definition
- Database File Attributes
- Logical Views/Files Associated with a File Definition
- Tips and Techniques for Defining Files Using LANSA.
[ |../../index.htm#lansa/insbbc_0018.htm]