Show Contents List
You are here:

20.2 Global vs Local Scope SrvRoutines

Where you define your SrvRoutine can be quite important, specifically if you execute the same SrvRoutine multiple times asynchronously, that is you may execute the second call before the first call has completed.
For this reason, it is generally recommended to use Local Scoping for your SrvRoutine definitions.
Local Scope
In this example the SrvRoutine is defined within a method routine.
 
Mthroutine Name(Load)