Problem Note 53914: Using the FILEREF and FEXIST functions with a FILENAME FTP data set in SAS® 9.4 might return incorrect values
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.
Operating System and Release Information
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 |
*
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.
The FILEREF and FEXIST functions might return incorrect values when used with a FILENAME FTP data set in SAS 9.4.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2014-08-20 13:06:26 |
Date Created: | 2014-08-12 16:02:19 |