BookmarkSubscribeRSS Feed
Lea1702
Fluorite | Level 6

Dear SAS experts, could you help to find what is going on with this statement?

Thanks in advance for your comments.

 

proc sgplot data=tempend4 noautolegend nocycleattrs;
refline 1 100 / axis=x;
refline 0.1 10 / axis=x lineattrs=(pattern=shortdash) transparency=0.5;
highlow y=nEffect low=lowercl high=uppercl / lowcap=serif highcap=serif
lineattrs=graphdata1;
scatter y=nOverall x=oddsratioest / markerattrs=graphdata2
(symbol=diamondfilled size=10);
highlow y=nEffect low=lowercl high=uppercl / type=bar intervalbarwidth=.1in
nooutline fillattrs=graphdata1;
yaxistable effect / y=nAll position=left location=outside
nolabel value justify=right pad=(right=0px);
yaxistable oddsratioest lowercl uppercl /*weight*/ / y=nEffect position=right location=inside
labelalign=center labelattrs=(weight=bold)
pad=(left=20px right=10px);
inset 'Low-Normal' / position=bottomleft;
inset 'Overweight-Obesity ' / position=bottomright;
xaxis type=log min=0.01 max=100 minor display=(nolabel)
offsetmin=0 offsetmax=0;
yaxis display=none offsetmin=0.1 offsetmax=0.05 values=(1 to &nobs);
run;

 

/*2802  nolabel value justify=right pad=(right=0px);
              -----
              22
              76
ERROR 22-322: Syntax error, expecting one of the following: ;, ATTRID, CLASS, COLORGROUP, LABEL, LABELATTRS,
              LABELPOS, LOCATION, NAME, NOLABEL, NOSTATLABEL, POSITION, SEPARATOR, STAT, TEXTGROUP, TEXTGROUPID,
              TITLE, TITLEATTRS, VALUEATTRS, X, Y, Y2AXIS.
ERROR 76-322: Syntax error, statement will be ignored.
2803  yaxistable oddsratioest lowercl uppercl /*weight*/ / y=nEffect position=right location=inside
2804  labelalign=center labelattrs=(weight=bold)
      ----------
      22
      76
ERROR 22-322: Syntax error, expecting one of the following: ;, ATTRID, CLASS, COLORGROUP, LABEL, LABELATTRS,
              LABELPOS, LOCATION, NAME, NOLABEL, NOSTATLABEL, POSITION, SEPARATOR, STAT, TEXTGROUP, TEXTGROUPID,
              TITLE, TITLEATTRS, VALUEATTRS, X, Y, Y2AXIS.
ERROR 76-322: Syntax error, statement will be ignored.
*/

2 REPLIES 2
PeterClemmensen
Tourmaline | Level 20

Take a look at your YAXISTABLE statements and what options are allowed in them. 

 

You can find all you need in the PROC SGPLOT YAXISTABLE Option Help Center 

 

For example, what does sss= do?

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1399 views
  • 0 likes
  • 3 in conversation