BookmarkSubscribeRSS Feed
Imroze
Fluorite | Level 6

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

 

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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;

Imroze
Fluorite | Level 6

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

RW9
Diamond | Level 26 RW9
Diamond | Level 26

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).

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 2265 views
  • 0 likes
  • 3 in conversation