BookmarkSubscribeRSS Feed
suvi107
Calcite | Level 5

Hello Everybody,

Searched different user communities but not able to find any answers.

I have created a project which creates few hundred permanent datasets. Now the problem is I have to create similar datasets for two different scenarios.

So what I want to do is to find a way(options, macro) to change the library of the datasets which will prevent me from overwrite the datasets.

I use SAS EG 4.3.

Thanks in advance!

Regards,

Suvendu

3 REPLIES 3
jakarman
Barite | Level 11

This scenario is very common with advanced testing (DTAP design) .
When you have the library definition (libname statement) not being coded inside your program but separated and being under control by a setting than what is the problem?

You cannot secure those datasets unless you are the security admin yourself. The only other approach is having backup/restore options for those parts of data     

---->-- ja karman --<-----
suvi107
Calcite | Level 5

May Be I was not clear the 1st time.

What I am trying to do is to just take a copy of the same SAS Project and change some parameters for the new scenario. The only hindrance that I am facing is if I run the copied project with new scenario the datasets with old scenario information will be over written. Which I don't want to do. And I may need to run both the scenarios somtimes parallely also.

I am looking for a solution pretty similar to the Migration Utility where it list down the Libraries and we have to provide the new library name in the new servers.

Regards

Suvi

Kurt_Bremser
Super User

If the datasets are all created in the same logical library, you only have to change that libref. Once a new physical location is assigned to the same logical name, all datasets are written to the new location.

That's actually what the whole libraries thing is for.

To make the whole thing even easier, you can create a prompt in EG to ask for the scenario and then assign the libname accordingly.

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
  • 3 replies
  • 978 views
  • 1 like
  • 3 in conversation