SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 45507: FILEEXIST causes an infinite loop on Unix if path equates to the root directory

DetailsHotfixAboutRate It

It was reported that a macro program being used with the FILEEXIST function goes into an infinite loop if the path parameter resolves to the root directory. This was not the case in SAS 9.1.3, but appears to have begun in SAS 9.2.

Below is an example of some code that can cause the problem.

   %let path=/TECH/SP/../.. ;                     
                                                  
   %put Checking &path ;                          
   %put PATH &path : %sysfunc(fileexist(&path)) ; 

Click the Hot Fix tab for the link to the fix.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SAS64-bit Enabled Solaris9.21_M39.2 TS2M3
HP-UX IPF9.21_M39.2 TS2M3
64-bit Enabled HP-UX9.21_M39.2 TS2M3
64-bit Enabled AIX9.21_M39.2 TS2M3
z/OS9.21_M39.2 TS2M3
Solaris for x649.21_M39.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.