BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
David_Billa
Rhodochrosite | Level 12
Is there a way that we can move the dataset from one library to other library?
In one of my DI job, I want to change the library of the source dataset. Any help?

1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21

@David_Billa wrote:
In DIS, how to assign the table metadata to the new library?

The new library must also be defined in SAS Metadata. Then open the the table metadata properties where you can change the assigned library. And once done also move the table metadata object to the appropriate metadata folder.

View solution in original post

8 REPLIES 8
PaigeMiller
Diamond | Level 26

PROC COPY

--
Paige Miller
David_Billa
Rhodochrosite | Level 12
If I do PROC COPY via SAS EG, it will update the library in the respective
dataset which was being used in the job?
PaigeMiller
Diamond | Level 26

I don't understand the question.

 

PROC COPY takes a dataset(s) in one library and makes a copy in the other library. Is that what you want?

--
Paige Miller
David_Billa
Rhodochrosite | Level 12
Yes.

I would like to know if I do proc copy from SAS EG, it will change the
library of the respective dataset which was being used in DI studio job
without updating metadata?
SASKiwi
PROC Star

Correct. A PROC COPY by itself will not change library metadata. If you want the copied dataset registered in metadata in the library it was copied to then you have to do that separately.

Patrick
Opal | Level 21

@David_Billa wrote:
Is there a way that we can move the dataset from one library to other library?
In one of my DI job, I want to change the library of the source dataset. Any help?


In DIS assign the table metadata to the new library.

Redeploy all impacted jobs (impact/reverse impact analysis on the table will give you the list of jobs).

With EG use Proc Copy or Proc Datasets/Copy to also move the physical data. Consider using the MOVE option in the Proc if you don't want to just replicate (copy) the data but also remove it from the source.

David_Billa
Rhodochrosite | Level 12
In DIS, how to assign the table metadata to the new library?
Patrick
Opal | Level 21

@David_Billa wrote:
In DIS, how to assign the table metadata to the new library?

The new library must also be defined in SAS Metadata. Then open the the table metadata properties where you can change the assigned library. And once done also move the table metadata object to the appropriate metadata folder.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 8 replies
  • 2022 views
  • 2 likes
  • 4 in conversation