BookmarkSubscribeRSS Feed
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/"
dbms=tab out=storm_damage_tab;


The given answer in the Activity is:

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


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.

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.





Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.


Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 


Register now!

5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

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