<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: data-step label font-size in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-step-label-font-size/m-p/16634#M2333</link>
    <description>Hi:  &lt;BR /&gt;
  TITLE1 and TITLE2 appear to be variables, as are BU, URL1 and URL2. When you use PROC PRINT, either the variable names or labels are used, depending on procedure options. With PROC PRINT, you must use either the LABEL or the SPLIT= option in order to have your variable labels used.&lt;BR /&gt;
 &lt;BR /&gt;
  Then, in order to alter the default font size of the PROC PRINT output, you must:&lt;BR /&gt;
1) route your output to a destination that supports style changes (such as HTML, RTF or PDF)&lt;BR /&gt;
2) use the appropriate STYLE(HEADER)= override in your PROC PRINT code&lt;BR /&gt;
3a) decide whether you want all the headers the same size or&lt;BR /&gt;
3b) decide whether you want different headers different sizes.&lt;BR /&gt;
 &lt;BR /&gt;
  The program below illustrates the 3b approach. If you wanted ALL the headers to be the same size, then your PROC PRINT code would NOT have style overrides on the VAR statements, but would, instead, have style overrides on the PROC PRINT statement itself:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc print data=sashelp.class label noobs &lt;BR /&gt;
     style(header)={font_size=18pt};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                       &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\large_labels.html' style=sasweb;&lt;BR /&gt;
         &lt;BR /&gt;
proc print data=sashelp.class(obs=3) split='*' noobs;&lt;BR /&gt;
  var name / style(header)={font_size=18pt vjust=b} ;&lt;BR /&gt;
  var age / style(header)={font_size=10pt vjust=b};&lt;BR /&gt;
  var height weight / style(header)={font_size=24pt vjust=b};&lt;BR /&gt;
  label name = 'Student Name'&lt;BR /&gt;
        age = "Updated on*June 19, 2011";&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Sun, 19 Jun 2011 20:03:10 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-06-19T20:03:10Z</dc:date>
    <item>
      <title>data-step label font-size</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-label-font-size/m-p/16633#M2332</link>
      <description>I'm using proc print to print out the information created in reports2.&lt;BR /&gt;
How do I change the font-size for the labels of title1 and title2?&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
data reports2;&lt;BR /&gt;
length title1 $64 title2 $64 url1 $200 url2 $200;&lt;BR /&gt;
label title1="Updated &amp;amp;date1., 2011" title2="Updated June 17, 2011";&lt;BR /&gt;
input bu $18. / title1 $64. / url1 $200. / title2 $64. / url2 $200. ;&lt;BR /&gt;
cards;&lt;BR /&gt;
*****&lt;BR /&gt;
run;</description>
      <pubDate>Sun, 19 Jun 2011 08:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-label-font-size/m-p/16633#M2332</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2011-06-19T08:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: data-step label font-size</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-label-font-size/m-p/16634#M2333</link>
      <description>Hi:  &lt;BR /&gt;
  TITLE1 and TITLE2 appear to be variables, as are BU, URL1 and URL2. When you use PROC PRINT, either the variable names or labels are used, depending on procedure options. With PROC PRINT, you must use either the LABEL or the SPLIT= option in order to have your variable labels used.&lt;BR /&gt;
 &lt;BR /&gt;
  Then, in order to alter the default font size of the PROC PRINT output, you must:&lt;BR /&gt;
1) route your output to a destination that supports style changes (such as HTML, RTF or PDF)&lt;BR /&gt;
2) use the appropriate STYLE(HEADER)= override in your PROC PRINT code&lt;BR /&gt;
3a) decide whether you want all the headers the same size or&lt;BR /&gt;
3b) decide whether you want different headers different sizes.&lt;BR /&gt;
 &lt;BR /&gt;
  The program below illustrates the 3b approach. If you wanted ALL the headers to be the same size, then your PROC PRINT code would NOT have style overrides on the VAR statements, but would, instead, have style overrides on the PROC PRINT statement itself:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc print data=sashelp.class label noobs &lt;BR /&gt;
     style(header)={font_size=18pt};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                       &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\large_labels.html' style=sasweb;&lt;BR /&gt;
         &lt;BR /&gt;
proc print data=sashelp.class(obs=3) split='*' noobs;&lt;BR /&gt;
  var name / style(header)={font_size=18pt vjust=b} ;&lt;BR /&gt;
  var age / style(header)={font_size=10pt vjust=b};&lt;BR /&gt;
  var height weight / style(header)={font_size=24pt vjust=b};&lt;BR /&gt;
  label name = 'Student Name'&lt;BR /&gt;
        age = "Updated on*June 19, 2011";&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Sun, 19 Jun 2011 20:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-label-font-size/m-p/16634#M2333</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-19T20:03:10Z</dc:date>
    </item>
  </channel>
</rss>

