BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
alepage
Barite | Level 11

Hello,

 

I am using a SAS Enterprise Guide 7.15 and I would like to make a backup of a dataset automatically each first day of the month.  Is there a way to achieve that operation.  Does The SAS programm need to be open?

 

Regards,

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Create a stored procedure that runs on the first of the month. You can schedule this is in your SAS server. 

The stored procedure is basically the code to save the data set, depending on your rules you can possibly use PROC DATASETS to copy it over and rename the data set. You need to have this scheduled on a server because its likely your computer is not on every day and no guarantee that it's on the first of the month, especially on weekends.

 

http://www2.sas.com/proceedings/sugi30/135-30.pdf

View solution in original post

6 REPLIES 6
Reeza
Super User

@alepage wrote:

Hello,

 

I am using a SAS Enterprise Guide 7.15 and I would like to make a backup of a dataset automatically each first day of the month.  Is there a way to achieve that operation. 


Yes

 


@alepage wrote:

Does The SAS programm need to be open?

  


No. 

 

 

alepage
Barite | Level 11

how can we make a backup of a dataset automaticaly lets say at each first Monday of the Month without opening the SAS program with EG 7.15

Reeza
Super User

Create a stored procedure that runs on the first of the month. You can schedule this is in your SAS server. 

The stored procedure is basically the code to save the data set, depending on your rules you can possibly use PROC DATASETS to copy it over and rename the data set. You need to have this scheduled on a server because its likely your computer is not on every day and no guarantee that it's on the first of the month, especially on weekends.

 

http://www2.sas.com/proceedings/sugi30/135-30.pdf

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 924 views
  • 1 like
  • 3 in conversation