Problem Note 37229: SAS® program names might convert to lowercase when you use APIs in SAS® Integration Technologies to execute SAS code
When you use the application programming interfaces (APIs) in SAS® Integration Technologies to write custom code that executes Base SAS® programs, you must pass the name of the SAS program to execute. If you do not specify the .sas extension, the entire porgram name is converted to lowercase. This change can cause problems in UNIX environments where names are case sensitive. For example, in the following program, the name Testprg is converted to testprg because the .sas extension is left out:
. . .other program statements. . .
ILanguageService sasLanguage = iWorkspace.LanguageService();
IStoredProcessService iStored = sasLanguage.StoredProcessService();
iStored.Repository("file:" + path);
// Execute SAS program
iStored.Execute("Testprg", params);
. . .other program statements. . .
To circumvent this problem, be sure to specify the .sas extension for the program name, as shown in this example:
. . .other program statements. . .
ILanguageService sasLanguage = iWorkspace.LanguageService();
IStoredProcessService iStored = sasLanguage.StoredProcessService();
iStored.Repository("file:" + path);
// Execute SAS program
iStored.Execute("Testprg.sas", params);
. . .other program statements. . .
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Enterprise BI Server | 64-bit Enabled HP-UX | 4.2 | 4.2 | 9.2 TS2M2 | 9.2 TS2M3 |
64-bit Enabled Solaris | 4.2 | 4.2 | 9.2 TS2M2 | 9.2 TS2M3 |
HP-UX IPF | 4.2 | 4.2 | 9.2 TS2M2 | 9.2 TS2M3 |
Linux | 4.2 | 4.2 | 9.2 TS2M2 | 9.2 TS2M3 |
Linux for x64 | 4.2 | 4.2 | 9.2 TS2M2 | 9.2 TS2M3 |
Solaris for x64 | 4.2 | 4.2 | 9.2 TS2M2 | 9.2 TS2M3 |
64-bit Enabled AIX | 4.2 | 4.2 | 9.2 TS2M2 | 9.2 TS2M3 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2009-12-16 09:45:01 |
Date Created: | 2009-09-21 14:06:42 |