Hi,
I am trying to sort out sashelp.cars data using pageby command, it is reporting error.
proc sort sashelp.cars out=cars1;
by origin;
pageby origin;
run;
Try PROC PRINT to display output. If you check the examples on PROC PRINT documentation you'll find examples of the usage.
proc sort does not have a pageby statement, as it does not produce output. pageby is available in proc print.
What do you want to achieve?
Thank you for swift response. I would like to get report for every origin on new page. I am browsing sashelp.cars data provided by SAS (in sas studio)
Try PROC PRINT to display output. If you check the examples on PROC PRINT documentation you'll find examples of the usage.
thanks a lot, it was immensely helpful.
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!
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.