is there a way for subroutine to determine if a variable has been defined in the calling program?
so you don't get the run time error if you were to just do IF VAR="" THEN ....
example:
calling program
CALL SOMESUB(VAR1, VAR2)
subroutine
SUBROUTINE SOMESUB(VAR1, VAR2)
VAR2=""
IF VAR1="" THEN RETURN
But if in the calling program, there was no VAR1="..." , the subroutine will throw a run time error that "" was used.
is there a way like the php isset() function to test if a variable has been defined?
George