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....
LIBNAME 101

Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.

Find more tutorials on the SAS Users YouTube channel.

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