SAS 2 lesson 3.2.11 level 1---> infile path is displayed an error-->path --> '/folders/myshortcuts/batch5/ecourse2/sales1.dat';

7 views
Skip to first unread message

Thirumagal manivannan

unread,
Aug 7, 2014, 9:30:12 PM8/7/14
to anova...@googlegroups.com
Hi,
SAS 2 lesson 3.2.11level1 --->infile path is displayed an error.

mycode;

data salesstaff;
    infile '/folders/myshortcuts/batch5/ecourse2/sales1.dat';
input @1 employee_ID 6.
     @21 Last_name $18.
     @43 Job_title $20.
      @64 Salary Dollar8.
      @87 Hire_date mmddyy8.;
run;
Title 'Sales Staff in Australia and United
        State';
proc print data=salesstaff;
run;
title;

Please let me know the infile path for sales1.dat.
Log messge;
OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
42 ;
43 data salesstaff;
44 infile '/folders/myshortcuts/batch5/ecourse2/sales1.dat';
45 input @1 employee_ID 6.
46 @21 Last_name $18.
47 @43 Job_title $20.
48 @64 Salary Dollar8.
49 @87 Hire_date mmddyy8.;
50 run;
ERROR: Physical file does not exist, /folders/myshortcuts/batch5/ecourse2/sales1.dat.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.SALESSTAFF may be incomplete. When this step was stopped there were 0 observations and 5 variables.
WARNING: Data set WORK.SALESSTAFF was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.04 seconds
51 Title 'Sales Staff in Australia and United
52 State';
53 proc print data=salesstaff;
54 run;
NOTE: No observations in data set WORK.SALESSTAFF.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
55 title;
56 ;
57 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
67 ;

Thirumagal manivannan

unread,
Aug 8, 2014, 9:50:03 AM8/8/14
to anova...@googlegroups.com
Hi,
Just now I have entere correct path. It's working fine.
Regards
Thiru
Reply all
Reply to author
Forward
0 new messages