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 ]
Posted in reply to mantubiradar19

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

Posted in reply to mohamed_zaki
Thanks Mohamed! Let me try this!
Super User
Posts: 19,768

Re: Error message for creating new variable

Posted in reply to mantubiradar19
Your missing a SET statement.
Contributor
Posts: 57

Re: Error message for creating new variable

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