Learning SAS? Welcome to the exclusive online community for all SAS learners.

Getting error for infile statement

Reply
New Contributor
Posts: 2

Getting error for infile statement

Hi ,

 

Can someone pls let me know what is the issue with

 

data numbers;
infile ’c:\sasuniversityedition\myfolders\1.dat’ missover;
input TestNumber;
run;

proc print data=numbers;
title 'Test DATA Step';
run;

 

Getting error as 

 

56 data numbers;
57 infile ’c:\sasuniversityedition\myfolders\1.dat’ missover;
_
23
ERROR 23-2: Invalid option name :.
 
57 ! infile ’c:\sasuniversityedition\myfolders\1.dat’ missover;
____________________
23
ERROR 23-2: Invalid option name SASUNIVERSITYEDITION.
 
57 ! infile ’c:\sasuniversityedition\myfolders\1.dat’ missover;
_________
23
ERROR 23-2: Invalid option name MYFOLDERS.
Super User
Posts: 19,878

Re: Getting error for infile statement

Posted in reply to vagishpatil

You can't access your C drive from SAS UE, it's a Virtual Machine. 

 

You've mapped myfolders as a shared drive but need to access it using the UNIX path. 

 

/folders/myfolders/1.dat

 

If you look at the FAQs this is all explained. 

 

https://support.sas.com/software/products/university-edition/faq/main.htm

Super User
Posts: 19,878

Re: Getting error for infile statement

Posted in reply to vagishpatil

You can't access your C drive from SAS UE, it's a Virtual Machine. 

 

You've mapped myfolders as a shared drive but need to access it using the UNIX path. 

 

/folders/myfolders/1.dat

 

If you look at the FAQs this is all explained. 

 

https://support.sas.com/software/products/university-edition/faq/main.htm

New Contributor
Posts: 2

Re: Getting error for infile statement

Thanks. It worked.

Ask a Question
Discussion stats
  • 3 replies
  • 597 views
  • 1 like
  • 2 in conversation