LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 30 Jul 2008 03:51:35 -0700
Reply-To:   RolandRB <rolandberry@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   RolandRB <rolandberry@HOTMAIL.COM>
Organization:   http://groups.google.com
Subject:   Re: strange problem with style(column)
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset=ISO-8859-1

On Jul 30, 12:14 pm, RolandRB <rolandbe...@hotmail.com> wrote: > On Jul 30, 8:09 am, RolandRB <rolandbe...@hotmail.com> wrote: > > > > > > > In my code I have this: > > > style(COLUMN)=[background=&background_stats > > foreground=&foreground_stats > > font_face=&font_face_stats > > font_weight=&font_weight_stats > > %if "&column_border" NE "Y" %then %do; > > HTMLSTYLE="border:none; mso-number-format:'\@'" > > %end; > > %else %do; > > HTMLSTYLE="mso-number-format:'\@'" > > %end; > > ] > > > style(LINES)=[background=&background_other > > foreground=&foreground_other > > font_face=&font_face_other > > font_style=&font_style_other font_weight=&font_weight_other > > %if &lines_border NE Y %then %do; > > %if &compskip_ul EQ Y %then %do; > > HTMLSTYLE="border-bottom:&compskippx.px solid > > &compskipcol;border-left:none;border-right:none;border-top:none; mso- > > number-format:'\@'" > > %end; > > %else %do; > > HTMLSTYLE="border:none; mso-number-format:'\@'" > > %end; > > %end; > > %else %do; > > HTMLSTYLE="mso-number-format:'\@'" > > %end; > > ] > > ; > > > But when I run the code I get this error. Note that no "]" is > > generated before style(lines). I can't wotk out what the problem is. > > I've spent two hours on it and got nowhere so I think it could benefit > > from a fresh look. > > > HTMLSTYLE="border:none; mso-number-format:'\@'" > > --------- > > 79 > > 76 > > MPRINT(UNICATREP): proc report missing headline headskip nowd > > split="@" data=_unicatrep > > style(REPORT)=[cellspacing=1 cellpadding=0 rules=none background=white > > foreground=black > > HTMLSTYLE="border-left:none;border-right:none;border-bottom:1px solid > > black;border-top:1px solid > > black" outputwidth=65% ] style(HEADER)=[background=white > > foreground=black > > HTMLSTYLE="border-bottom:1px solid black;border-left:none;border- > > right:none;border-top:none; > > mso-number-format:'\@'" ] style(COLUMN)=[background=white > > foreground=black font_face=Courier > > font_weight=normal HTMLSTYLE="border:none; mso-number-format:'\@'" > > style(LINES)=[background=white > > foreground=black font_face=Arial font_style=roman font_weight=bold > > HTMLSTYLE="border:none; > > mso-number-format:'\@'" ] ; > > > ERROR 79-322: Expecting a (. > > > ERROR 76-322: Syntax error, statement will be ignored. > > Amazingly, this error was due to specifying a font weight of "normal". > It has to be light, medium or bold. > > http://support.sas.com/kb/2/457.html- Hide quoted text - > > - Show quoted text -

Can you believe that it took me 5 hours to find that bug? :o((


Back to: Top of message | Previous page | Main SAS-L page