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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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