SAS: Loading built in dataset?

Viewed 247

I'm a complete SAS newbie, and I know that this is super basic, but I'm going crazy just trying to load the built in sashelp.cars, of course I can double click it and it loads but i can't figure out the syntax for it. This is what I already tried:

proc import out=sashelp.cars
datafile = 'SASHELP.CARS'
dbms = csv;
getnames = yes;
datarow = 2;
run;

Can anyone help with this? I'm using SAS on demand for academics. Thanks!

1 Answers

Steve,

Hard to know what you are asking for here. To get a dataset, especially one of the built-in ones, use this code:

   data test;    
      set sashelp.cars; 
   run;
Related