![]() | ![]() | ![]() | ![]() | ![]() |
In SAS 9.4, when you access a file defined with the FILENAME statement using the FTP engine with the FILEREF and FEXIST functions, they might return incorrect results. The problem occurs if the data set being accessed is a TAPE data set or if the file generates a 4xx or 5xx message from the FTP server.
For example, if you specify the DEBUG option in the FILENAME statement using the FTP engine, as shown in the following code:
filename intape ftp "'remote.tape.dataset'" user=userid pass=password host=hostname debug; data _null_; %put fexist=%sysfunc(fexist(intape)); %put fileref=%sysfunc(fileref(intape)); RUN;
This note appears in your SAS log and the function results are incorrect.
NOTE: <<< 450 Data set remote.tape.dataset is allocated to another job and is unavailable for RETR command.
In this scenario, the FEXIST function returns a value of 0 instead of 1. This value incorrectly indicates that the file does not exist when it does.
The FILEREF function returns a value of -20006 instead of the correct value of 0.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | Base SAS | z/OS | 9.4 TS1M0 | 9.4 TS1M3 |
Z64 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.4 TS1M0 | |||
Microsoft® Windows® for x64 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8 Pro x64 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Pro | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 R2 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2008 for x64 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M0 | 9.4 TS1M3 | ||
Microsoft Windows Server 2012 Std | 9.4 TS1M0 | 9.4 TS1M3 | ||
Windows 7 Enterprise x64 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Windows 7 Professional x64 | 9.4 TS1M0 | 9.4 TS1M3 | ||
64-bit Enabled AIX | 9.4 TS1M0 | 9.4 TS1M3 | ||
64-bit Enabled HP-UX | 9.4 TS1M0 | 9.4 TS1M3 | ||
64-bit Enabled Solaris | 9.4 TS1M0 | 9.4 TS1M3 | ||
HP-UX IPF | 9.4 TS1M0 | 9.4 TS1M3 | ||
Linux for x64 | 9.4 TS1M0 | 9.4 TS1M3 | ||
Solaris for x64 | 9.4 TS1M0 | 9.4 TS1M3 |