Hello. Do you know how these syntax came out error?
PROC SGPLOT DATA=WORK.Sheet1;
Symbol1 i=splines v=dot;
PLOT Radio*period;
RUN;
@sasgiaz wrote:
Hello. Do you know how these syntax came out error?
PROC SGPLOT DATA=WORK.Sheet1;
Symbol1 i=splines v=dot;
PLOT Radio*period;
RUN;
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;7273 PROC SGPLOT DATA=WORK.Sheet1;74 Symbol1 i=splines v=dot;74 Symbol1 i=splines v=dot;_______180ERROR 180-322: Statement is not valid or it is used out of proper order.75 PLOT Radio*period;____180ERROR 180-322: Statement is not valid or it is used out of proper order.76 RUN;NOTE: The SAS System stopped processing this step because of errors.NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.01 secondscpu time 0.01 seconds7778 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;91Your help much appreciated, Thankyou
SYMBOL statements are primarily used by Proc Gplot and G3d and are not valid for Proc SGplot.
PLOT statement also is not used by Proc Sgplot as the first statement would be the type of plot scatter, series, vbox.
It looks like you would request a SPLINE plot and a scatter plot to over lay the dot markers.
Try
Proc sgplot data=work.sheet1; spline x=period y=radio; scatter x=period y=radio/ markerattrs=(symbol=circlefilled); run;
Or try Proc Gplot.
@sasgiaz wrote:
Hello. Do you know how these syntax came out error?
PROC SGPLOT DATA=WORK.Sheet1;
Symbol1 i=splines v=dot;
PLOT Radio*period;
RUN;
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;7273 PROC SGPLOT DATA=WORK.Sheet1;74 Symbol1 i=splines v=dot;74 Symbol1 i=splines v=dot;_______180ERROR 180-322: Statement is not valid or it is used out of proper order.75 PLOT Radio*period;____180ERROR 180-322: Statement is not valid or it is used out of proper order.76 RUN;NOTE: The SAS System stopped processing this step because of errors.NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.01 secondscpu time 0.01 seconds7778 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;91Your help much appreciated, Thankyou
SYMBOL statements are primarily used by Proc Gplot and G3d and are not valid for Proc SGplot.
PLOT statement also is not used by Proc Sgplot as the first statement would be the type of plot scatter, series, vbox.
It looks like you would request a SPLINE plot and a scatter plot to over lay the dot markers.
Try
Proc sgplot data=work.sheet1; spline x=period y=radio; scatter x=period y=radio/ markerattrs=(symbol=circlefilled); run;
Or try Proc Gplot.
Looks like you're taking GPLOT code and just switching it to SGPLOT and expecting it to run.
Unfortunately that doesn't work.
You need the correct SG code to make this work.
If you're finding code that references SAS/GRAPH I wouldn't use it, that's fairly outdated method to create graphics and the quality is not nearly as good, and it's harder to code in.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.