Creating and updating control files

When you open a sample AFP file to enhance it, AFP Visual Environment can either create a control file or update a control file that you created previously. The control file contains definitions that tell how to enhance production AFP files that are similar to the sample AFP file.
If a control file already exists for a sample AFP file and you need to enhance the AFP file again, update the existing control file instead of creating a new control file. All the definitions that apply to the sample AFP file must be in the same control file.
To create or update a AFP Visual Environment control file:
  1. In AFP Visual Environment, open a sample AFP file.
    You see the Open Control File window with the message Do you want to use an existing control file for this AFP file?
  2. Do one of these:
    • To create a control file, click No.
    • To update a control file, click Yes. You see the Open window:
      1. Select the control file.
      2. Click Open.
  3. If you opened the wrong control file, click File Open Control File and select the correct control file.
    If you see message Your unsaved changes will be lost if you open a new control file. Do you want to continue? , it means that you have already enhanced the AFP file in this session and you will lose those changes. Do one of these:
    • To open another control file, click Yes.
    • To save the open control file first so that you do not lose the definitions you created in this session, click No. Then save the control file.
  4. Enhance the sample AFP file.
    For example, create page groups, index tags, bar codes, text, and white space.
  5. Do one of these:
    • To save a new control file or to rename an updated control file:
      1. Click File Save control file as.
      2. Type the full path name of the control file in the File name field.
      3. Click Save.
      Use a name for the control file that helps you associate the AFP file with its control file. The default extension for control files is .ctl.
    • To save an updated control file with the same name, click File Save control file.