Help using Base SAS procedures

Error message for creating new variable

Reply
Contributor
Posts: 57

Error message for creating new variable

I tried to run the following piece of code:

data ssd.Dur1dur2;
avg_pres_Y =(dur1_acei/(dur2_acei/365));
run;

 

anb I'm getting this error (Attached in the image) - can someone help me to solve this? 

 

 


SAS.JPG
Super Contributor
Posts: 490

Re: Error message for creating new variable

[ Edited ]

Check if the table viewer is open for your data sets?

If that is the case, then close it first and resubmit your code.

Contributor
Posts: 57

Re: Error message for creating new variable

Thanks Mohamed! Let me try this!
Super User
Posts: 17,912

Re: Error message for creating new variable

Your missing a SET statement.
Contributor
Posts: 57

Re: Error message for creating new variable

Thanks ReezA!
Ask a Question
Discussion stats
  • 4 replies
  • 325 views
  • 2 likes
  • 3 in conversation