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 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 10 Jul 2007 17:31:35 -0400
Reply-To:   Mike Rhoads <RHOADSM1@WESTAT.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Mike Rhoads <RHOADSM1@WESTAT.COM>
Subject:   Re: HTML in ODS PROCLABEL???
Comments:   To: Paige Miller <paige.miller@kodak.com>
In-Reply-To:   <1184089172.430862.259220@r34g2000hsd.googlegroups.com>
Content-Type:   text/plain; charset="us-ascii"

I'm sure there's a more elegant way to do this, but the following appears to work:

ods proclabel "<b></b>This is <b>PROC PRINT</b>";

Apparently when the text begins with a <, SAS considers it an HTML tag, and therefore lets all < and > in the string come through unscathed. Without the < at the beginning, SAS assumes that these characters found later in the string are meant as text, and "escapes" them so they are not recognized as HTML tags. You can see this if you do a View Source on the dummy_contents.html.

There is a PROTECTSPECIALCHARACTERS in PROC TEMPLATE, so there might be a way to apply that in such a way as to make this work.

Mike Rhoads Westat RhoadsM1@Westat.com

-----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Paige Miller Sent: Tuesday, July 10, 2007 1:40 PM To: sas-l@uga.edu Subject: HTML in ODS PROCLABEL???

Here's a trivial example of what I am trying to do (SAS 9.1.3, Windows XP)

/* This code works, the ODS PROCLABEL text appears BOLD */ ods html body='dummy.html' contents='dummy_contents.html' frame='dummy_frame.html' path='o:\pmiller\temp1'; ods proclabel "<b>This is PROC PRINT</b>"; proc print data=a; run; ods html close;

/* This code DOES NOT WORK, none of the ODS PROCLABEL text appears BOLD, and the character strings "<b>" and "</b>" appear as text in the contents */ ods html body='dummy.html' contents='dummy_contents.html' frame='dummy_frame.html' path='o:\pmiller\temp1'; ods proclabel "This is <b>PROC PRINT</b>"; proc print data=a; run; ods html close;

Is it possible to make HTML commands work as I intend them to work within ODS PROCLABEL?

-- Paige Miller paige\dot\miller \at\ kodak\dot\com


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