<?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 Trying to print everything from a dataset but format/style a few of the variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Trying-to-print-everything-from-a-dataset-but-format-style-a-few/m-p/214443#M52840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Basically, since some of the variables are so long they end up looking like scientific notation in excel, so I have to use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var X /style(data)={tagattr='format:@'};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO I want to print all the variables, but want to apply some styling options to just a few. How do I do that without writing var statements for all variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 21:31:30 GMT</pubDate>
    <dc:creator>Xamius32</dc:creator>
    <dc:date>2015-05-13T21:31:30Z</dc:date>
    <item>
      <title>Trying to print everything from a dataset but format/style a few of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trying-to-print-everything-from-a-dataset-but-format-style-a-few/m-p/214443#M52840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Basically, since some of the variables are so long they end up looking like scientific notation in excel, so I have to use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var X /style(data)={tagattr='format:@'};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO I want to print all the variables, but want to apply some styling options to just a few. How do I do that without writing var statements for all variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 21:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trying-to-print-everything-from-a-dataset-but-format-style-a-few/m-p/214443#M52840</guid>
      <dc:creator>Xamius32</dc:creator>
      <dc:date>2015-05-13T21:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to print everything from a dataset but format/style a few of the variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trying-to-print-everything-from-a-dataset-but-format-style-a-few/m-p/214444#M52841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only way to apply style to specific variables is to use multiple VAR statements. If you have multiple vars that you want to style the same, you can list them on the same VAR statement. So, for example, see the code below. You can set some overall defaults on the PROC PRINT statement, but individual variables with differing styles will need to be on separate VAR statements.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.excelxp file='c:\temp\stylechange.xml' style=htmlblue;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc print data=sashelp.shoes (obs=10)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; style(obsno)={background=pink color=navy}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; style(header)={background=pink}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; style(column)={font_face='Courier New'};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var region / style(header)={background=darkblue color=yellow font_weight=bold}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(data)={background=darkblue color=yellow font_weight=bold};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var subsidiary / style(header)={font_size=12pt font_weight=bold};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var product / style(data)={background=lightyellow};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var sales inventory returns / style(data)={background=grayaa font_size=12pt font_weight=bold};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.excelxp close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 21:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trying-to-print-everything-from-a-dataset-but-format-style-a-few/m-p/214444#M52841</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-05-13T21:56:04Z</dc:date>
    </item>
  </channel>
</rss>

