This function determines the IMOD and statement number responsible for calling the current IMOD. This is useful in debugging invalid calls to common routines.
line imodname = $WHEREFROM()
Parameters
Line number in the parent IMOD responsible for invoking the currently executing IMOD.
Name of the parent IMOD.
NOT CALLED FROM IMOD
Example
signal on syntax /* set trap */ parse arg w1 w2 w3 . /* begin processing */ ... ... syntax: /* trap code */ say 'Error' rc 'on line' sigl /* show location of error */ say 'IMOD called from $wherefrom() /* show source of call */ return
Copyright © 2014 CA Technologies.
All rights reserved.
|
|