DATA Step, Macro, Functions and more

I imported a csv file as I save it in SAS Data Set (.sas7bdat)?

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

I imported a csv file as I save it in SAS Data Set (.sas7bdat)?

Hi, I imported a data set via csv data import, I for sas miner I need to save this data set in SAS Data Set (.sas7bdat), how do I do it?
someone is capae to do it, thank you in advance ..:smileylolImmagine.png


Accepted Solutions
Solution
‎04-09-2018 01:11 PM
Super User
Posts: 23,224

Re: I imported a csv file as I save it in SAS Data Set (.sas7bdat)?

Posted in reply to michshoot

This is know as saving it to a permanent library. 

 

First declare a library at that location, then move the data set there using PROC COPY or a DATA STEP.

 

libname outf  'c:\_localdata\test';

proc copy in=work out = outf;
select myData;
run;

/*OR*/

data outf.want;
set myData;
run;

View solution in original post


All Replies
Solution
‎04-09-2018 01:11 PM
Super User
Posts: 23,224

Re: I imported a csv file as I save it in SAS Data Set (.sas7bdat)?

Posted in reply to michshoot

This is know as saving it to a permanent library. 

 

First declare a library at that location, then move the data set there using PROC COPY or a DATA STEP.

 

libname outf  'c:\_localdata\test';

proc copy in=work out = outf;
select myData;
run;

/*OR*/

data outf.want;
set myData;
run;
☑ This topic is solved.

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

Discussion stats
  • 1 reply
  • 85 views
  • 0 likes
  • 2 in conversation