Step 1: Beginning and Ending the Procedure

In this section:

Goal

Before you develop the logic of the procedure, you must know how to begin and end it.


Top of page

x
Methods: MAINTAIN and END Commands

All Maintain procedures begin and end with two simple commands (which must be in uppercase) as illustrated in the following syntax definition:

MAINTAIN FILE filename 
.
.
.
END

If you wish to work with several data sources in one procedure, you specify all of them in the MAINTAIN command. Unlike the MODIFY facility, the COMBINE command is not required. For example:

MAINTAIN FILES Employee AND EducFile AND JobFile
.
.
.
END

The MAINTAIN command has additional phrases used in other types of situations. As with all Maintain commands, the complete syntax is described in Command Reference.


Top of page

x
Solution

You now have the beginning and end of the sample Maintain procedure:

MAINTAIN FILE VideoTrk 
END

Try it now: If you have created your own set of application files, enter those commands into your Maintain procedure file, for example, into TUTOR1 FOCEXEC.


Information Builders