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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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