Reading Multilingual file using filename statement

Reply
Contributor
Posts: 62

Reading Multilingual file using filename statement

Dear all,

Please find the below requirements.

Need to read a file name which has MULTILINGUAL characters (abcdégée.txt).

Sample Code:

filename   xyz  "c:\abcdégée.txt";

data abc;

  infile xyz;

  input a $1-500;

run;

Getting and ERROR : INVALID OPEN MODE error.

ERROR : ERROR IN FILENAME STATEMENT.

Thank you

 

Super User
Super User
Posts: 7,392

Re: Reading Multilingual file using filename statement

Hi,

Sorry, the below worked fine in my Base SAS 9.3 session:

filename   xyz  "S:\Temp\Rob\abcdégée.txt";

data abc;
  length a $500;
  infile xyz dsd;
  input a $;
run;

Contributor
Posts: 62

Re: Reading Multilingual file using filename statement

I am using SAS 9.2 version and instead of .txt i am reading .sas program.

Super User
Super User
Posts: 7,392

Re: Reading Multilingual file using filename statement

Perhaps you could post a truncated version of what you are trying to import (which still gives the error) as I suspect there is something in the file you are trying to import which is causing the problem (it shouldn't matter the file extension as .sas files are text).

Super User
Posts: 6,928

Re: Reading Multilingual file using filename statement

You get an invalid open mode. Maybe you have a problem with access rights, or the file is currently held open by another process for writing.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 4 replies
  • 789 views
  • 0 likes
  • 3 in conversation