BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
helper27
Calcite | Level 5

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;

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Try PROC PRINT to display output. If you check the examples on PROC PRINT documentation you'll find examples of the usage.

View solution in original post

4 REPLIES 4
Kurt_Bremser
Super User

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?

helper27
Calcite | Level 5

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)

Reeza
Super User

Try PROC PRINT to display output. If you check the examples on PROC PRINT documentation you'll find examples of the usage.

helper27
Calcite | Level 5

thanks a lot, it was immensely helpful. 

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1113 views
  • 1 like
  • 3 in conversation