TRANSFORM

TRANSFORM

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

TRANSFORM

Transfers control to another procedure.

Syntax

TRANSFORM procedurename [(]expression[)]

Parameters

procedurenameThe name of the procedure to which execution control is to be transferred.
expressionParameters or macros for procedurename (formatted as when calling the procedure).

Comments

TRANSFORM transfers execution control to the specified procedure, but does not return control to the calling procedure once procedurename has finished executing. Control returns instead to the “parent” of the calling procedure.

Example

Consider the following sequence of procedures:

01 procedure Proc1 ( )

02  Proc2 ( )       (Control goes to line 12)

:   … more commands …

10 endprocedure

11 %————————

12 procedure Proc2 ( )

13   transform Proc3 ( )   (Control goes to line 23)

:   … more commands …

21 endprocedure

22 %———————–

23 procedure Proc3 ( )

24  … more commands …

25 endprocedure      (Control goes to line 03)

The normal flow (without TRANSFORM) is Proc1 to Proc2 to Proc3 to Proc2 to Proc1.

The flow for calling with TRANSFORM is Proc1 to Proc2 to Proc3 to Proc1.

See Also

How To Call Procedures

RETURN

STOP

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish