Installing file definitions

The following procedure uses the CICS® CEMT and CEDA transactions to install a FILE definition:
  1. If the file already exists, ensure that it is closed and disabled:
    CEMT SET FILE(filename) CLOSED DISABLED
  2. Install the file definition:
    CEDA INSTALL GROUP(groupname) FILE(filename)
  3. When you have successfully installed the group containing the file, use CEMT to open and enable the file (if it is not already defined as enabled, and if you want to open the file explicitly):
    CEMT SET FILE(filename) OPEN ENABLED

As an alternative to CEMT, you can use the EXEC CICS SET FILE command in a user-written transaction to disable and enable the file.