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.

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