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.
pppFILMENU File Control Menu Enter number of function or place cursor on same line and press Enter. 4 1. Create a new file definition
|
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.
DC@P200201 Create/Recreate a File from its Definition File : FileName Library File description Submit this job as described below . . . . . . . . . . YES YES,NO
|
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:
or
You will find more information about creating files in the LANSA for i User Guide: