BookmarkSubscribeRSS Feed
Hari2
Quartz | Level 8

HI Team,

 

- I want to connect to connect to a New Library with in SAS, However we have many datasets in that Library and I do not want to pull all

  of them rather I want to pull only one data set / Specific 2,3 datasets.
- How can I do this through Libname staement. Please suggest.

2 REPLIES 2
Jagadishkatam
Amethyst | Level 16

Please try the proc copy procedure as below

 

libname existing '~path';
libname new '~path';

proc copy in=existing out=new memtype=data;
select dataset1 dataset2 dataset3;
run;

Thanks,
Jag
Patrick
Opal | Level 21

@Hari2 

A libname only establishes the connection to the folder and creates a directory listing. No data gets moved by the libname and for this reason the number of tables in the folder will not cause issues nor impact on performance.

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 567 views
  • 1 like
  • 3 in conversation