SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 37229: SAS® program names might convert to lowercase when you use APIs in SAS® Integration Technologies to execute SAS code

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise BI Server64-bit Enabled HP-UX4.24.29.2 TS2M29.2 TS2M3
64-bit Enabled Solaris4.24.29.2 TS2M29.2 TS2M3
HP-UX IPF4.24.29.2 TS2M29.2 TS2M3
Linux4.24.29.2 TS2M29.2 TS2M3
Linux for x644.24.29.2 TS2M29.2 TS2M3
Solaris for x644.24.29.2 TS2M29.2 TS2M3
64-bit Enabled AIX4.24.29.2 TS2M29.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.