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.

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

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
  • 880 views
  • 0 likes
  • 1 in conversation