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.png

📢

ANNOUNCEMENT

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

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
  • 738 views
  • 2 likes
  • 2 in conversation