Hi, I am trying to get slipper product in first 50 observation and I am using following syntax.However it showing error message
proc print data=sashelp.shoes (where=(product="Slipper") (obs=50);
run;
Kindly help. Thanks in advance!
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
22ERROR 22-7: Invalid option name (.proc print data=sashelp.shoes ( where=(product="Slipper") (obs=50) ;
run;
Kindly help. Thanks in advance!
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 save with the early bird rate—just $795!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.