On the INFILE statement, DATACARDS is not a reserved word. It refers to a data set name (and that data set does not exist).
Instead of DATACARDS, you can use either CARDS or DATALINES.
If you provide more data then it will be helpful to answer. say give the sample code (how you are using and where--scenario).
still u pasted the log, what I want is a sample code which you are using.
Well as per the log you need to provide the infile statement with dlm option .
Ex: data test;
infile datacards dlm="." dsd truncover;
input x y z;
datacards;
123.123.123
;
hope answered the question.
I am sorry I am a really a beginner so could not understand you exactly. Here are the codes
Data en;
infile datacards dlm="." dsd truncover;
input Fert Day Time Hfert Hfeed pH DO Temp NH4 NO2 TAN PO4 Fishwt
datalines;
1 8 9 23 22.5 7.8 6.7 29 0.43 0.024 0.454 0.1 75
1 8 9 23 22.5 7.9 7.1 29 0.13 0.009 0.139 0.1 59
1 8 9 23 22.5 7.8 6.8 28 0.16 0.012 0.172 0.1 80
0 8 9 23 22.5 7.9 7.4 29 0.57 0.039 0.609 0.14 76
0.5 8 9 23 22.5 8 7.2 28 0.18 0.016 0.196 0.12 82
0 8 9 23 22.5 7.9 7 28 0.74 0.063 0.803 0.14 90
0.5 8 9 23 22.5 7.8 6.7 28 0.93 0.049 0.979 0.15 68
0 8 9 23 22.5 7.9 7.1 28 0.33 0.048 0.378 0.11 98
0.5 8 9 23 22.5 7.9 7 28 0.15 0.009 0.159 0.12 82
;
proc glm;
class fert;
model pH=fert;
proc glm;
class fert;
model DO=fert;
proc glm;
class fert;
model NH4=fert;
proc glm;
class fert;
model NO2=fert;
proc glm;
class fert;
model PO4=fert;
proc glm;
class fert;
model Fishwt=fert;
run;
You will need to add a semicolon at the end of your INPUT statement ... the sort of mistake that everyone has made at one point or another.
On the INFILE statement, DATACARDS is not a reserved word. It refers to a data set name (and that data set does not exist).
Instead of DATACARDS, you can use either CARDS or DATALINES.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.