BookmarkSubscribeRSS Feed
zhangrachel0118
Calcite | Level 5

Create the np_sort table that contains data for national parks. You want the data sorted by regional code and decreasing numbers of daily visitors. If necessary,start SAS before you begin.

Reminder: If you restarted your SAS session, you must open and submit the libname.sas program created in Activity 2.04 to access your course files.

  1. Open p103p08.sas from the practices folder.

  2. Modify the PROC SORT step to read pg1.np_summary and create a temporary, sorted table named np_sort.

  3. Add a BY statement to order the data by Reg and descending DayVisits values.

  4. Add a WHERE statement to select Type equal to NP.

  5. Submit the program and view the output data.

How many rows are in the np_sort table?

 

I cannot get the right answer for this question, and I am not sure if I am incorrect with the activity 2.04 or the coding for np_sort, and the error said that File WORK.NP_SUMMARY.DATA does not exist and Library PG1 does not exist.

2 REPLIES 2
Tom
Super User Tom
Super User

Read the REMINDER in what you just posted.

Did you run the libname.sas program?  Did it work?  If so it should have created the PG1 libref where you could find the input dataset.

Cynthia_sas
SAS Super FREQ
Hi:
I just posted some examples of how to construct the LIBNAME statement in your other post asking about the LIBNAME statement activity.
Cynthia

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 156 views
  • 0 likes
  • 3 in conversation