BookmarkSubscribeRSS Feed
PaigeMiller
Diamond | Level 26

That looks good, but since I don't know what is in your data sets (what variable names, and what variable types numeric or character, and what the variable values) it still might have problems. Which is why I suggested you provide a portion of data sets one and two via these instructions, and then we can all stop guessing.

--
Paige Miller
Tom
Super User Tom
Super User

A time value is already a number of seconds, so no need for all of those extra function calls.

datetime=dhms(date,0,0,time);
Tom
Super User Tom
Super User

Never put tab characters in program files.

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
  • 18 replies
  • 3848 views
  • 0 likes
  • 5 in conversation