BookmarkSubscribeRSS Feed
6 REPLIES 6
yabwon
Amethyst | Level 16

variables you are using are not numeric... because they do not exist in the dataset...

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



Tom
Super User Tom
Super User

The last of those errors is the most important in this case.  Basically is says that the three variables you are trying to SUM do not exist on the dataset you are using.

 

You either have the wrong dataset or the wrong variable names.

 

Proglegs
Calcite | Level 5

I am looking at the log of my co-worker.  They did not get an error.  Same code.

Proglegs_0-1735326125777.png

 

SASKiwi
PROC Star

Your code is the same but your input data isn't. Run this step on both yours and your co-workers dataset and compare the logs and the Output window results:

proc contents data = work.last_pay_period;
run;

:

Tom
Super User Tom
Super User

Since both pictures you posted show the use of WORK datasets then they are by definition reading from different datasets.  The WORK library is separate for each SAS process.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 6 replies
  • 2295 views
  • 10 likes
  • 5 in conversation