Help using Base SAS procedures

Brand New SAS Student

Reply
Occasional Contributor
Posts: 6

Brand New SAS Student

Thanks! Do you guys offer private one-on-one SAS instruction online?

Trusted Advisor
Posts: 1,230

Re: Brand New SAS Student

Posted in reply to daniel7832

Hi,

libname new 'C:\Users\Danny\Documents\My SAS Files\9.3'; /* new is the library name assigned to the folder where you have placed your file */

data question03;         /* Temporary sas file */                                                                                                            
set new.question03;  /* reference to the permanent sas datset question03 */
run;                                                                                                                                                                                                                                                                       

proc print data=question03;                                                                                                          
run;

Super User
Posts: 19,869

Re: Brand New SAS Student

Posted in reply to daniel7832

You don't need to "import" or read in a native sas file. You need to be able to reference it.

To do that you have to specify the location of the folder using a libname and then you can print it from there.

I'd recommend saving the files to something that makes sense to organize each project rather than the Documents section.

libname temp "C:\Users\Danny\Documents\My SAS Files\9.3\";

proc print temp.question03;

run;

Super User
Posts: 11,343

Re: Brand New SAS Student

Posted in reply to daniel7832

I would suggest getting a copy of Little SAS Primer as if you have been in a SAS environment for weeks and no one has discussed library other concepts you may want some additional help.

Also the online SAS help has a section on Learning to Use SAS that may be beneficial to review as there are many program examples.

Ask a Question
Discussion stats
  • 3 replies
  • 202 views
  • 0 likes
  • 4 in conversation