BookmarkSubscribeRSS Feed
Doc_Duke
Rhodochrosite | Level 12
Just to share a nasty surprise. I was using Query Builder to count the number of visits that had dates present The generated code was

(SUM(t1.SGVisitDate>.)) AS CHEvisitDone

When that code runs against a SAS dataset, all is well. When it runs against an Access table via a LIBNAME (to ACCESS, not to ODBC), it returns all NULLS (no errors or warnings).

If I change the summary function to
COUNT(t1.SGVisitDate) AS CHEvisitDone
I get the expected answer with either source.

Caveat emptor! I will also send to tech support.
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
Response from designers to tech support: "It's not a bug, it's a feature."

I finally found the behavior documented on page 31-32 of the "SAS/Access 9.2 for Relational Databases, Reference" 4th Ed.

Caveat emptor.

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 959 views
  • 0 likes
  • 1 in conversation