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

Hi there,

I'm experiencing a very strange issue with Lesson 3. I need to write a PROC FREQ step to analyze rows from pg1.np_species.

 

So this is what I write:

 

proc freq pg1.np_species;

run;

 

And for some reason I get this error message:

 

32 proc freq pg1.np_species;
______________
22
201
ERROR: File WORK.T_STORM_DAMAGE.DATA does not exist.
ERROR 22-322: Syntax error, expecting one of the following: ;, COMPRESS, DATA, FC, FORMCHAR, NLEVELS, NOPRINT, ORDER, PAGE.
ERROR 201-322: The option is not recognized and will be ignored.
33 *where species_id like 'YOSE%' and category='Mammal';
34 run;

 

It looks like SAS is trying to open an entirely different dataset named T_STORM_DAMAGE, for some reason.

 

I've restarted SAS and this project, but this keeps happening. What is going on here?

1 ACCEPTED SOLUTION

Accepted Solutions
Negarev
Obsidian | Level 7
Ah, nevermind, I forgot about the data= statement....

View solution in original post

2 REPLIES 2
japelin
Rhodochrosite | Level 12

If retype the same code in a newly program window, what will be the result?

Negarev
Obsidian | Level 7
Ah, nevermind, I forgot about the data= statement....

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!

5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 677 views
  • 2 likes
  • 2 in conversation