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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 2655 views
  • 10 likes
  • 5 in conversation