Help using Base SAS procedures

Libname statement

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,040
Accepted Solution

Libname statement

Hi,

I am using a libname statement to read datasets into SAS from a folder in my C drive

Now I am creating some more datasets using the above  as inputs and want to store in another folder maybe

IS THAT POSSIBLE??

Regards


Accepted Solutions
Solution
‎04-13-2013 11:05 AM
Super User
Super User
Posts: 6,500

Re: Libname statement

You can pretty much have as many librefs defined as you need.

Sounds like you want something like this:

libname in "c:\path1" access=readonly ;

libname out "c:\path2";

data out.new ;

  set in.old;

run;

View solution in original post


All Replies
Super User
Posts: 5,256

Re: Libname statement

yes

Data never sleeps
Solution
‎04-13-2013 11:05 AM
Super User
Super User
Posts: 6,500

Re: Libname statement

You can pretty much have as many librefs defined as you need.

Sounds like you want something like this:

libname in "c:\path1" access=readonly ;

libname out "c:\path2";

data out.new ;

  set in.old;

run;

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 170 views
  • 3 likes
  • 3 in conversation