Problem Note 35477: Invalid physical name error when a FILE statement contains certain Shift-JIS characters
When using DBCS Shift-JIS with a SAS FILE statement that includes certain Shift-JIS (SJIS) characters, the following error occurs and no output is produced.
ERROR: Invalid physical name.
The code might look like this:
%let outname=あーあ.txt;
data _null_;
file "&outdir./&outname";
put "aaa";
run;
Some specific FILE statement examples that fail are:
%a(形骸.txt); /** 骸 is 8A5B in SJIS **/
%a(あーあ.txt); /** ー is 815B in SJIS **/
This problem does not occur with non-DBCS filenames.
DBCS SAS regards 0x5B as a wildcard character. Because 0x5B characters are included in some DBCS characters in Shift-JIS system, you cannot use such DBCS characters in your file path.
Select the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Solaris for x64 | 9.1 TS1M3 SP4 | 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.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2009-04-11 23:38:54 |
Date Created: | 2009-04-06 16:50:09 |