DATA Step, Macro, Functions and more

SAS proc import error

Reply
Contributor
Posts: 23

SAS proc import error

[ Edited ]
proc import datafile="‪C:\Users\HP\Desktop\sas.txt"
dbms=dlm out=sas;
run;


33 proc import datafile="?C:\Users\HP\Desktop\sas.txt"
34 dbms=dlm out=sas;
35 run;

ERROR: Physical file does not exist, ?C: Users\HP\Desktop\sas.txt.
ERROR: Import unsuccessful. See SAS Log for details.

SAS Moderator
Posts: 61

Re: sas [how to improve your question]

Posted in reply to vinod4842

Hello @vinod4842,


Your question requires more details before experts can help. Can you revise your question to include more information? 

 

Review this checklist:

  • Specify a meaningful subject line for your topic.  Avoid generic subjects like "need help," "SAS query," or "urgent."
  • When appropriate, provide sample data in text or DATA step format.  See this article for one method you can use.
  • If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition. Use the Photos button to include the image in your message.
    use_buttons.png
  • It also helps to include an example (table or picture) of the result that you're trying to achieve.

To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message.  From there you can adjust the title and add more details to the body of the message.  Or, simply reply to this message with any additional information you can supply.

 

edit_post.png

SAS experts are eager to help -- help them by providing as much detail as you can.

 

This prewritten response was triggered for you by fellow SAS Support Communities member @draycut

.
Super User
Super User
Posts: 8,070

Re: SAS proc import error

Posted in reply to vinod4842

Looks like you have some extra characters in your program.  Try re-typing the filename, including the quotes.

Super User
Posts: 23,663

Re: SAS proc import error

Posted in reply to vinod4842

Are you using SAS UE?

 

You also didn't specify a delimiter, was that your intention?

 


@vinod4842 wrote:
proc import datafile="‪C:\Users\HP\Desktop\sas.txt"
dbms=dlm out=sas;
run;


33 proc import datafile="?C:\Users\HP\Desktop\sas.txt"
34 dbms=dlm out=sas;
35 run;

ERROR: Physical file does not exist, ?C: Users\HP\Desktop\sas.txt.
ERROR: Import unsuccessful. See SAS Log for details.


 

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