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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 379 views
  • 0 likes
  • 3 in conversation