BookmarkSubscribeRSS Feed
helper27
Calcite | Level 5

 

Hi, I am trying to get slipper product in first 50 observation and I am using following syntax.However it showing error message

22
ERROR 22-7: Invalid option name (.
 

proc print data=sashelp.shoes (where=(product="Slipper") (obs=50);
run;

 

Kindly help. Thanks in advance!

1 REPLY 1
Reeza
Super User

You have 3 open parenthesis and only 2 closing parenthesis. 

 

proc print data=sashelp.shoes ( where=(product="Slipper") obs=50 ) ;

You don't need extra parentheses around the obs option.


@helper27 wrote:

 

Hi, I am trying to get slipper product in first 50 observation and I am using following syntax.However it showing error message

22
ERROR 22-7: Invalid option name (.
 

proc print data=sashelp.shoes where=(product="Slipper") (obs=50) ;
run;

 

Kindly help. Thanks in advance!


 

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 413 views
  • 0 likes
  • 2 in conversation