DATA Step, Macro, Functions and more

importing dataset from Work library

Reply
Occasional Contributor
Posts: 12

importing dataset from Work library

Hello,

 

I have just generated a new dataset that has been placed in my WORK folder. how do i import this new data in order to be able to analyze it? 

 

Here is how i generated the new data set

DATA sample_new_vars;
    SET P1.project1;
    bmi = (weight / (height*height) ) * 703;
RUN;

Thanks for any help!

Super User
Posts: 5,853

Re: importing dataset from Work library

Importing it to what?
It's already in SAS so you should be able to analyze it right away.
Data never sleeps
Super User
Posts: 9,934

Re: importing dataset from Work library

It's already a SAS dataset. Just use it.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Super User
Super User
Posts: 7,944

Re: importing dataset from Work library

Just use it.

proc means data=sample_new_vars;
  var bmi;
run;
Ask a Question
Discussion stats
  • 3 replies
  • 113 views
  • 0 likes
  • 4 in conversation