BookmarkSubscribeRSS Feed
ol_mate
Calcite | Level 5

Hi all, Long-time reader, first-time poster here and relatively new to SAS, so pretty excited to be here.

What I am trying to do is put a dependency check into a program that checks the date a table was last loaded prior to running a proc export, so we don't run an export unless the table has been loaded today.

I know a proc contents would show these attributes, but I am wanting to use an IF statement of sorts to load only if load date is todays date.

Any ideas best way to go - using SAS EG 7.12

Many thanks, Pete

1 REPLY 1
andreas_lds
Jade | Level 19

Check sashelp.vtable, the variable crdate and modate contain creation and modification date of any dataset in an assigned library.

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
  • 1068 views
  • 1 like
  • 2 in conversation