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
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;
I am using SAS 9.2 version and instead of .txt i am reading .sas program.
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).
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.