SCOUG-Programming Mailing List Archives
Return to [ 11 |
September |
1999 ]
<< Previous Message <<
>> Next Message >>
** Reply to note from scoug-programming@scoug.com Sat, 11 Sep 1999 13:35:56 PDT
> Sometimes a program needs to check and see if another program can be executed.
>
> In some languages you simply "load" the other program and, if the load is successful,
> you know it can be run.
>
> REXX doesn't have a load command. How do I check to see if a program can be executed
> in REXX?
>
Since REXX can execute anything I don't think there is a way to check except for the
return code of the failure. That is unless you want to search the entire system
looking for the program you are going to execute.
RC = 1041 is not found.
SYS1041: The name XXXXX is not recognized as an
internal or external command, operable program or batch file.
+++ RC(1041)
Use SysSearchPath(env_path, file_name) to find a program if you think this is
neccessary.
Robert Blair
blairra@tstonramp.com
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 11 |
September |
1999 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|