BookmarkSubscribeRSS Feed
fighting123
Fluorite | Level 6
PROC IMPORT DATAFILE ='C:\Users\TSE\s208034\Marl_3.dat'
OUT = mark3 DBMS= TAB REPLACE;
GETNAMES=YES;
RUN; 
PROC PRINT DATA = mark3; 
TITLE 'mark3'; 
RUN;

fighting123_0-1604054468736.png

 

fighting123_0-1604054361892.png

why there is an ERROR 23-2: Invalid option name input ? is it my input method wrong?? 

2 REPLIES 2
CarmineVerrell
SAS Employee

It seems like line 2 in your log is missing a semicolon. 

A useful saying we use at SAS to remember semicolons is - SAS should stand for semicolon after semicolon . After each statement, you need to put one.  🙂 

 

Carmine

ballardw
Super User

Instead of taking the time to create a picture of the text it is much better to copy the text from the editor or log and then paste into a code box on the forum using the </> icon.

 

That way we can make actual edits or highlight the text in a response to a post to indicate needed changes or problem spots. We can't do that with pictures.

 

Similar, text data like CSV file examples should be posted in the same sort of box. Then we have something we can write code to test with.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 526 views
  • 0 likes
  • 3 in conversation