My professor has given me the following code but when I try to make the change to the path I continue to get the same message that it doesn't exist. I'm not sure if I'm putting the file in wrong or what's going on. I have tried numerous file names and paths, but nothing seems to go anywhere. (I've tried desktop folders, virtual box folders, SAS folders), so I'm obviously doing something wrong. I appreciate any help you can give me. This is what my professor gave me:
options nodate nonumber;
*ods pdf file=":\Users\khalil.shafie\OneDrive - University of Northern Colorado\courses\SRM-602\Summer2018-1\Assignments\hw2\sasoutputasgn02.pdf" style=rtf notoc;
* Reading the data set in SAS ;
Data HSB;
INFILE 'C:\HSB.TXT' delimiter = '09'x;
/*change 'C:\' to an appropriate location*/
INPUT ID SEX RACE SES SCTYP HSP LOCUS CONCPT MOT CAR RDG WRTG MATH SCI CIV;
* Q8 ;
proc means data=Hsb n mean stddev ;
var CONCPT WRTG ; run;
quit;
proc freq data=Hsb ;
table RACE*SEX/ nopercent nocol norow ; run;
quit;
* Q9;
PROC MEANS DATA=HSB MEAN STD STDERR N T PRT LCLM UCLM;
VAR CONCPT;
run;
* Q10;
DATA SET2;
SET HSB;
ADJMATH = MATH-50;
PROC MEANS DATA=SET2 MEAN STD STDERR N T PRT alpha=.01 LCLM UCLM;
VAR ADJMATH ;
RUN;
*ods pdf close; This is one of the things I've tried: options nodate nonumber;
*ods pdf file=":\Users\khalil.shafie\OneDrive - University of Northern Colorado\courses\SRM-602\Summer2018-1\Assignments\hw2\sasoutputasgn02.pdf" style=rtf notoc;
* Reading the data set in SAS ;
Data HSB;
INFILE "C:\Users\neals\Desktop\HSB.TXT" delimiter = '09'x;
/*change 'C:\' to an appropriate location*/
INPUT ID SEX RACE SES SCTYP HSP LOCUS CONCPT MOT CAR RDG WRTG MATH SCI CIV;
* Q8 ;
proc means data=Hsb n mean stddev ;
var CONCPT WRTG ; run;
quit;
proc freq data=Hsb ;
table RACE*SEX/ nopercent nocol norow ; run;
quit;
* Q9;
PROC MEANS DATA=HSB MEAN STD STDERR N T PRT LCLM UCLM;
VAR CONCPT;
run;
* Q10;
DATA SET2;
SET HSB;
ADJMATH = MATH-50;
PROC MEANS DATA=SET2 MEAN STD STDERR N T PRT alpha=.01 LCLM UCLM;
VAR ADJMATH ;
RUN;
*ods pdf close; This is my log: Errors (1)
Warnings (2)
Notes (14)
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
NOTE: ODS statements in the SAS Studio environment may disable some output features.
73
74 options nodate nonumber;
75 *ods pdf file=":\Users\khalil.shafie\OneDrive - University of Northern
75 ! Colorado\courses\SRM-602\Summer2018-1\Assignments\hw2\sasoutputasgn02.pdf" style=rtf notoc;
76
77 * Reading the data set in SAS ;
78 Data HSB;
79 INFILE "C:\Users\neals\Desktop\HSB.TXT" delimiter = '09'x;
80 /*change 'C:\' to an appropriate location*/
81 INPUT ID SEX RACE SES SCTYP HSP LOCUS CONCPT MOT CAR RDG WRTG MATH SCI CIV;
82
83 * Q8 ;
84
85
86
ERROR: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/C:\Users\neals\Desktop\HSB.TXT.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.HSB may be incomplete. When this step was stopped there were 0 observations and 15 variables.
WARNING: Data set WORK.HSB was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
87 proc means data=Hsb n mean stddev ;
88 var CONCPT WRTG ; run;
NOTE: No observations in data set WORK.HSB.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
89 quit;
90
91 proc freq data=Hsb ;
92 table RACE*SEX/ nopercent nocol norow ; run;
NOTE: No observations in data set WORK.HSB.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
93 quit;
94
95
96 * Q9;
97
98 PROC MEANS DATA=HSB MEAN STD STDERR N T PRT LCLM UCLM;
99 VAR CONCPT;
100 run;
NOTE: No observations in data set WORK.HSB.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
101 * Q10;
102 DATA SET2;
103 SET HSB;
104 ADJMATH = MATH-50;
105
NOTE: There were 0 observations read from the data set WORK.HSB.
NOTE: The data set WORK.SET2 has 0 observations and 16 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
106 PROC MEANS DATA=SET2 MEAN STD STDERR N T PRT alpha=.01 LCLM UCLM;
107 VAR ADJMATH ;
108 RUN;
NOTE: No observations in data set WORK.SET2.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
109
110
111
112
113
114 *ods pdf close;
115
116 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
128
... View more