Use this function to begin each subroutine in a DAL subroutine library.
Once a DAL library is loaded, you can reference the scripts contained in the library by name. You do not have to CALL or CHAIN to the script.
Parameter |
Description |
Name |
Enter the name of the subroutine. |
BeginSub and EndSub must be paired per script. You must have a space between BeginSub and the script name.
Here is an example:
BeginSub SCRIPT1
* This script returns #x set to 2 if #x was equal to 1 on enter.
IF (#x = 1) THEN #x = 2;
END;
RETURN (#x);
EndSub
BeginSub Script2
* This script returns a negative one if #y was equal to 5.
if(#y = 5) then Return (-1);
end;
EndSub
SCRIPT1 is the name of the first script and Script2 is the name of the second script.
Note | SCRIPT1 and Script2 are only names, you can use any name you want as long as the name is not a DAL reserved function, statement, or key word such as CALL, FIND, IF, and so on. You can mix case in script names. |
© Copyright 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices