DATA Step, Macro, Functions and more

Create a SAS dataset

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 125
Accepted Solution

Create a SAS dataset

Hi ,

I have a dataset list in my folder 

"/usr/apps/sasdata/product/data/list "  and how to i move the file to SAS folders 

 

 

can anyone pls help

 

 


Accepted Solutions
Solution
‎04-26-2016 12:03 PM
Super User
Posts: 5,441

Re: Create a SAS dataset

Posted in reply to chennupriya
Are you referring to a folder in SAS metadata?
Data never sleeps

View solution in original post


All Replies
Super User
Posts: 19,877

Re: Create a SAS dataset

Posted in reply to chennupriya

Assign a library reference to the first location. 

Use proc datasets to move files over.

 

libname input '/usr/apps/sasdata/product/data/list";
libname output '/chennupriya';

proc datasets library=output nolist nodetails;
copy in=input out=output;
run;quit;
Frequent Contributor
Posts: 125

Re: Create a SAS dataset

HI,

It helps then i should know the correct path for the output

 

 

Thanks

Super User
Posts: 19,877

Re: Create a SAS dataset

Posted in reply to chennupriya

I don't understand.

The output is where you want it to go, so you put the destination. 

 

Please explain your problem thoroughly if you need more help.

Solution
‎04-26-2016 12:03 PM
Super User
Posts: 5,441

Re: Create a SAS dataset

Posted in reply to chennupriya
Are you referring to a folder in SAS metadata?
Data never sleeps
Frequent Contributor
Posts: 125

Re: Create a SAS dataset

I am referring to some folder in SAS folders for example  like in the image

 

 


sasfolder.jpgsasfolder.jpg
Frequent Contributor
Posts: 125

Re: Create a SAS dataset

I am referring to some folder in SAS folders for example  like in the image

 

 


sasfolder.jpg
Super User
Posts: 7,866

Re: Create a SAS dataset

Posted in reply to chennupriya

When registering tables in metadata with the SMC,  you can specify the metadata folder.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Frequent Contributor
Posts: 125

Re: Create a SAS dataset

Sry bymistake it got posted two times

☑ This topic is solved.

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

Discussion stats
  • 8 replies
  • 361 views
  • 0 likes
  • 4 in conversation