SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
manya92
Fluorite | Level 6

I am getting this erorr ;

 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 10         FILENAME _RTFOUT TEMP ENCODING='UTF-8';
                                           _
                                           24
                                            ___
                                            23
 ERROR: Error in the FILENAME statement.
 ERROR 24-2: Invalid value for the ENCODING option.
 
 ERROR 23-2: Invalid option name UTF.
 
 ERROR: Open code statement recursion detected.
 ERROR: Expected open parenthesis after macro function name not found.

My code runs once without any errors, and then when i run it again, it starts giving me this error and stops processing my request.

any suggestions on how to deal with this ?

4 REPLIES 4
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

have you tried:

changing: FILENAME _RTFOUT TEMP ENCODING='UTF-8';

to: FILENAME _RTFOUT TEMP ENCODING UTF8; 

 

manya92
Fluorite | Level 6
ERROR: Expected open parenthesis after macro function name not found.

This is the error i get after i add the statement you recommended
Kurt_Bremser
Super User

You have something unbalanced (parentheses, quotes) in your code that leaves the SAS interpreter in an unusable state. That's the #1 reason for the behaviour you describe.

Check your code for this (Maxim 2: read the log. Of the "successful" run).

ballardw
Super User

Some filename options are Operating system specific. Which OS are you running?

I do not get that error when running SAS 9.4m4 under Windows 10.

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2629 views
  • 0 likes
  • 4 in conversation