SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 35477: Invalid physical name error when a FILE statement contains certain Shift-JIS characters

DetailsHotfixAboutRate It
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

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SAS64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS1M0
Solaris for x649.1 TS1M3 SP49.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.