SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 19522: The FILENAME function for an HFS pathSAS argument generates incorrect results

DetailsHotfixAboutRate It

If you use a hierarchical file system (HFS) path name as an argument in the FILENAME function, SAS® adds spaces to the pathname. This condition will result in an unsuccessful allocation of the file. An example of code which produces this error is as follows:

rc2=FILENAME('TEST',fpath);

In this statement, fpath is an HFS path.

A short-term solution is to nest the COMPRESS function inside the FILENAME function as follows:

rc2=FILENAME('TEST',COMPRESS(fpath));

Select the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M39.2 TS1M0
* 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.