@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.
PROC COPY
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?
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.
@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 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.
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!
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.