Step 4. Make the file Operational

Whenever you commit amendments you change the definition of the file. To include these amendments in the I/O module which controls all access to the file, you must make the file operational.

1.  Return to the File Control Menu and select the Make new or amended file definition operational option.


 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. Review or change a file definition                             

     3. Delete a file definition                                       

     4. Make new or amended file definition operational                

     5. Print file definitions                                         

     6. Bulk Load of OTHER files                                       

     7. Exit from LANSA                                                





 F1=Help  F3=Exit  F12=Cancel  F14=Messages                            



2.  Nominate the file you wish to work with via the Select File to Work With screens.

     The Create/Recreate a File from its Definition screen is displayed:


   DC@P200201            Create/Recreate a File from its Definition  


   File   :    FileName    Library     File Description              


   Submit this job as described below  . . . . . YES YES,NO          

   Using      Job name . . . . . . . . . . . . . FileName            

              Job description . . . . . . . . .  *LIBL/QBATCH        

              Job queue. . . . . . . . . . . . . *JOBD               

              Output queue  . . . . . . . . . .  *LIBL/QPRINT        

  Produce file and I/O module source listings. . NO      YES,NO      

  Ignore decimal error/strip debug data options  NO YES  YES,NO

  User program to call at completion . . . . . . ____________________

  Object         Library     Type      Action to be taken / reason(s)




  F1=Help   F3=Exit   F12=Cancel   F14=Messages                      



     This step submits a job to create the I/O module for the file.

     The File Name is inserted as the Job Name, which you can change, if you wish.

3.  Press Enter to submit the job.

     Progress messages are displayed in the bottom section of the screen.

     When the job has been successfully completed, the I/O module will include all the file's and field's validations, default values, batch control logic, triggers and so on.

To find out what else happens when a file is made operational, refer to Submitting Job to Make File Definition Operational in the LANSA for i User Guide.