Usage Note 32165: The message in the SAS® log has changed for FUNCTION OPTNAME in SAS 9.2
The code included in this note generates different results in SAS 9.2 than it did in previous releases. Development was asked to change some messages to make them more accurate, and this was one of the changes that was made. The actual message change is that "filename" is returned now rather than "file name". See the Full Code, and Results/Output tab for the code and output.
Operating System and Release Information
| SAS System | Base SAS | Solaris for x64 | 9.2 TS1M0 | |
| OpenVMS on HP Integrity | 9.2 TS1M0 | |
| Linux for x64 | 9.2 TS1M0 | |
| Linux | 9.2 TS1M0 | |
| HP-UX IPF | 9.2 TS1M0 | |
| 64-bit Enabled Solaris | 9.2 TS1M0 | |
| 64-bit Enabled HP-UX | 9.2 TS1M0 | |
| 64-bit Enabled AIX | 9.2 TS1M0 | |
| Windows Vista | 9.2 TS1M0 | |
| Microsoft Windows XP Professional | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
| Microsoft® Windows® for x64 | 9.2 TS1M0 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
| z/OS | 9.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.
data fileatt;
filename mytest "C:\temp\test.txt";
fid=fopen("mytest");
put "File id is: " fid=;
optname=foptname(fid,1);
put optname=;
rc=fclose(fid);
run;
SAS 9.1.3 :
-----------------------------------------------------------------
17 data fileatt;
18 filename mytest "C:\temp\test.txt";
19 fid=fopen("mytest");
20 put "File id is: " fid=;
21 optname=foptname(fid,1);
22 put optname=;
23 rc=fclose(fid);
24 run;
File id is: fid=1
optname=File Name
NOTE: The data set WORK.FILEATT has 1 observations and 3 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
SAS 9.2 :
----------------------------------------------------
9 data fileatt;
10 filename mytest "C:\temp\test.txt";
11 fid=fopen("mytest");
12 put "File id is: " fid=;
13 optname=foptname(fid,1);
14 put optname=;
15 rc=fclose(fid);
16 run;
File id is: fid=1
optname=Filename
NOTE: The data set WORK.FILEATT has 1 observations and 3 variables.
NOTE: DATA statement used (Total process time):
real time 0.04 seconds
cpu time 0.03 seconds
| Date Modified: | 2010-08-02 15:25:50 |
| Date Created: | 2008-05-20 09:44:18 |