Moving Procedures
Before you move or copy a procedure to another place in a
program or to a different program you should check the
following:
- Formulas: Are the fields and variables used in the
formulas available at this point in the program's execution?
- Maps:
If you entered <Blank> for the mapset, is the correct
mapset loaded? Are maps declared as On Screen Already available?
- Print procedures: Is the printer selected?
- Table Processing: Are tables declared as Already fetched
available?
The QA Build compiler will notify you of most problems that
can be caused by moving a procedure.
To move a procedure:
- Create a new link at the point of insertion and type in the
name of the procedure to be moved.
- Delete the procedure from its original position.
It may sometimes happen that you want to change the root
procedure of your program, and make the current root procedure a
subsidiary of the new root. The best and safest way to do this is
as follows:
- Enter Zoom Mode
- Delete the root procedure of the Zoomed Procedure Tree
- Create the new root procedure as described in
- Insert the original root procedure as a subsidiary of the new
procedure
- Cancel Zoom Mode
- Navigate to the root and select the Link option
- Change the procedure name for the link to the new root
procedure