How to: Reference: |
You can add any previously saved procedure to the process flow you are currently designing. The procedure may be:
The procedure will be executed within the process flow at the point where it is encountered.
The procedure will be executed within the process flow at the point where it is encountered.
In the course of developing a flow (either a data flow or a process flow), you may need to perform a variety of specialized tasks, from setting up the environment parameters and variables, to copying files. The DMC provides an editing window in which you can type your 4GL code or SQL. When you save the file, it is stored in an application directory, identified by the icon .
Then you can:
In fact, you can create a process flow composed of procedures and other objects, such as email messages, without any data flows. See Executing a Process Flow That Contains Only Procedures.
To create a procedure:
For example, create a procedure named PRODPARMS that has two parameters, &PTYPE and &CAT, as shown in the following image.
You are responsible for the accuracy of the syntax you enter. However, any errors that are generated will be displayed in the Server Messages tab below the workspace when you execute the procedure.
The procedure is listed in the navigation pane under an application directory, where it is preceded by the Procedure icon.
From here you can drag it into a process flow at any point. For details, see Adding a Saved Procedure to a Process Flow.
iWay Software |