BookmarkSubscribeRSS Feed
Mukti
Calcite | Level 5

The is in response to the Activity (Lesson 2) for Importing Data into SAS

 

I ran the following code with success (no errors, no warnings):

proc import REPLACE datafile="s:/workshop/EPG1V2/data/storm_damage.tab"
dbms=tab out=storm_damage_tab;
run;

 

The given answer in the Activity is:

proc import datafile="s:/workshop/EPG1V2/data/storm_damage.tab"
dbms=tab out=storm_damage_tab REPLACE;
run;

 

I ran the code both ways & the results look the same. Can someone please elaborate on this? Does it matter which way the code is written? Thanks.

1 REPLY 1
Tom
Super User Tom
Super User

The order of the options on the PROC IMPORT statement (and most statements that allow options) does not matter.

Since both answer are using the same options both are correct.  Any other permutation of the ordering of those options would also work.

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

LIBNAME 101

Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 964 views
  • 1 like
  • 2 in conversation