Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
SUB inc(a,b)
a=a+1
exit SUB when a>10
b=b+1
End SUB
Call inc(1,0)
How to verify that the Subroutine gets invoke and way to print the values of a and b.
Use the TRACE statement - this will write a message to the log. In its
simplest form, you can put this on the line after the SUB inc(a,b)
statement:
TRACE Entered the subroutine;
To show the value of a variable, use something like this:
TRACE a=$(a);