Previous Topic: OCFX Status CodesNext Topic: Using the Online Text Editor


Creating, Editing, and Saving Modules

OCF allows you to create, save, and edit OCF-language modules.

Note: For more information about executing these modules, see Executing Statements Stored in Modules (OCFX).

Creating and Saving

To create a module that has the language OCF, do the following:

  1. Enter source statements in your OCF work file.
  2. Enter the SAVE command on any line in the work file. Everything after the command to the end of the work file (or to a /* statement, whichever comes first) is saved in a module having the language OCF. Even input lines beginning with comment characters (*+) are saved.
►►─── SAVE module-name ─┬──────────────────────────┬─┬─────┬─────────────────►◄
                        └─ Version version-number ─┘ └─ ; ─┘

Editing

To retrieve the contents of an OCF-language module for editing, use the EDIT command.

►►─── EDIT module-name ─┬──────────────────────────┬─┬─────┬─────────────────►◄
                        └─ Version version-number ─┘ └─ ; ─┘

The contents of the module are displayed as an OCF work file. Edit the file using the editing commands shown in Using Line Commands.

Note: If you do not specify a version, the default is the version number set up in the command facility.