| || |
How to call the scripts which are in other directories or not in
User (email@example.com) posted:
Please help me out to call the scripts which are outside the repository(may
be independent Directory)
Thanks in Advance
Re: How to call the scripts which are in other directories or not in
User Carl Nagle (Carl.Nagle@sas.com) posted:
Well, I don't believe you would be able to call it as a Script. (Does providing a full path help?)
You can, though, call a script that exists anywhere by declaring the Main function and providing the full path to the script as a library. Note, the script will have to already been compiled and placed wherever it is you are trying to find it.
Script: MyRemoteScript.SBX located at \\machine\directory\MyRemoteScript.SBX
The script or library that wants to call it must declare the entry point in the remote executable:
Declare Sub MyRemoteScript BasicLib "\\machine\directory\MyRemoteScript" Alias "main"
(You can give the Sub any name you want--it will be an alias for "main".)
Then call the Sub, which is effectively the equivalent of calling a script:
Or something like that.