How to import only those records where Category is Fruit and Country is United States, while importing this excel file into SAS using proc import?
Here is one way:
libname excl xlsx '/folders/myfolders/product.xlsx'; data want; set excl.sheet1 (where=(Category eq 'Fruit' and Country eq 'United States')); run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
Register now!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.
Browse our catalog!