

Getting Started › Procedures and Triggers › Subroutine Calls Inside Procedures
Subroutine Calls Inside Procedures
Procedures may call subroutines that perform non-CA Datacom related tasks, defined as any task that does not cause any piece of CA Datacom code to execute. Following are the rules for CA Datacom related subroutines:
- A subroutine may not contain calls to CA Datacom SQL.
- A subroutine may not be a procedure. Note, however, that a procedure mainline is allowed to call procedures using the CALL PROCEDURE and EXECUTE PROCEDURE statements.
- A subroutine may not contain record-at-a-time, set-at-a-time, or other calls that trigger CA Datacom code to execute.
- Because we do not guarantee that CA Datacom physically prevents a subroutine from making a record-at-a-time, set-at-a-time, CA Datacom SQL, or other illegal call, making such a call is not recommended. Illegal calls not only attempt to execute under a different transaction than that of the caller, but could produce unexpected results, unexpected effects, and abnormal terminations for which we cannot be held responsible. Therefore, make certain that you do not use any illegal calls.
Copyright © 2015 CA Technologies.
All rights reserved.
 
|
|