Data visualization with SAS programming

headerbackcolor not working in sas 9.4

Reply
Occasional Contributor
Posts: 6

headerbackcolor not working in sas 9.4

I am trying to do graph with sgpanel, try to use headbackcolor to highlighted the header in each column of panel, but headerbackcolor not working in my current sas 9.4. please help.  Is there some other way to get the header back color?

 

Thanks

 

 

Grand Advisor
Posts: 9,713

Re: headerbackcolor not working in sas 9.4

Can you show the code you are using to set that option?

And does the log show any warnings or errors? If so paste the log with the code and messages into a code box opened with the forum {i} icon to preserve message formatting.

Occasional Contributor
Posts: 6

Re: headerbackcolor not working in sas 9.4

 

here is the following error message.

 

2238 ods graphics / reset=width;

2239 ods graphics;
2240
2241 proc sgpanel data=sashelp.class;
2242 where age > 14;
2243 panelby age / uniscale=row proportional headerbackcolor=CX0000FF;
---------------
22
202
ERROR 22-322: Syntax error, expecting one of the following: ;, BORDER, COLHEADERPOS, COLUMNS, HEADERATTRS, LAYOUT, MISSING, NOBORDER, NOHEADER, NOVARNAME, NOWALL, ONEPANEL, PROPORTIONAL,
ROWHEADERPOS, ROWS, SKIPEMPTYCELLS, SORT, SPACING, SPARSE, START, UNISCALE.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
2244 vbar name / response=height stat=mean;
2245 run;

NOTE: The SAS System stopped processing this step because of errors.

Grand Advisor
Posts: 9,713

Re: headerbackcolor not working in sas 9.4


goodlife9 wrote:

 

here is the following error message.

 
2243 panelby age / uniscale=row proportional headerbackcolor=CX0000FF;
---------------
22
202
ERROR 22-322: Syntax error, expecting one of the following: ;, BORDER, COLHEADERPOS, COLUMNS, HEADERATTRS, LAYOUT, MISSING, NOBORDER, NOHEADER, NOVARNAME, NOWALL, ONEPANEL, PROPORTIONAL,
ROWHEADERPOS, ROWS, SKIPEMPTYCELLS, SORT, SPACING, SPARSE, START, UNISCALE.
ERROR 202-322: The option or parameter is not recognized and will be ignored.

 


And the appearance is why I suggested posting the log in a code box. The location of the -------- would appear under what you typed to indicate exactly which "Option or parameter is not recognized"

Which  exact version of SAS are you running? The headerbackcolor option appears to have been added for SAS 9.4.3.

You should be able to check your maintance level in the About SAS help.

Occasional Contributor
Posts: 6

Re: headerbackcolor not working in sas 9.4

My code is very simple:




ods graphics;

proc sgpanel data=sashelp.class;
where age > 14;
panelby age / headerbackcolor=pink;
vbar name / response=height stat=mean;
run;

ods graphics / reset=width;



the log message:


2262 ods graphics / reset=width;
2263 ods graphics;
2264
2265 proc sgpanel data=sashelp.class;
2266 where age > 14;
2267 panelby age / headerbackcolor=pink;
---------------
22
202
ERROR 22-322: Syntax error, expecting one of the following: ;, BORDER, COLHEADERPOS, COLUMNS, HEADERATTRS, LAYOUT, MISSING, NOBORDER, NOHEADER, NOVARNAME, NOWALL, ONEPANEL, PROPORTIONAL,
ROWHEADERPOS, ROWS, SKIPEMPTYCELLS, SORT, SPACING, SPARSE, START, UNISCALE.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
2268 vbar name / response=height stat=mean;
2269 run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SGPANEL used (Total process time):
real time 0.01 seconds

cpu time 0.01 seconds


Post a Question
Discussion Stats
  • 4 replies
  • 61 views
  • 0 likes
  • 2 in conversation