Problem Note 45507: FILEEXIST causes an infinite loop on Unix if path equates to the root directory
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
SAS System | Base SAS | 64-bit Enabled Solaris | 9.21_M3 | | 9.2 TS2M3 | |
HP-UX IPF | 9.21_M3 | | 9.2 TS2M3 | |
64-bit Enabled HP-UX | 9.21_M3 | | 9.2 TS2M3 | |
64-bit Enabled AIX | 9.21_M3 | | 9.2 TS2M3 | |
z/OS | 9.21_M3 | | 9.2 TS2M3 | |
Solaris for x64 | 9.21_M3 | | 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 |
Topic: | SAS Reference ==> Functions ==> External Files ==> FILEEXIST
|
Date Modified: | 2012-07-31 15:35:38 |
Date Created: | 2012-01-26 13:04:04 |