<?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: apply format to proc print without var in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/462027#M70381</link>
    <description>wow this is exactly what I needed (-:</description>
    <pubDate>Mon, 14 May 2018 12:58:38 GMT</pubDate>
    <dc:creator>csetzkorn</dc:creator>
    <dc:date>2018-05-14T12:58:38Z</dc:date>
    <item>
      <title>apply format to proc print without var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/461964#M70377</link>
      <description>&lt;P&gt;This works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
 value Bla 
    low -&amp;lt; -1.0 = "red" 
    -1 -&amp;lt; 0 = "green"
	0 - high = "white"; 
run;

proc print data=Temp NOOBS; 
	var X Y Z
	/style(data) = [background=Bla.];	 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am in a situation where my vars are dynamic so I cannot use the /style option. Is there a way to apply the above format to all numeric values in the table to be printed?&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 09:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/461964#M70377</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-05-14T09:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: apply format to proc print without var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/461967#M70378</link>
      <description>&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;proc print data=temp noobs;
  var x y z;
  format _numeric_ bla.;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 May 2018 10:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/461967#M70378</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-14T10:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: apply format to proc print without var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/461969#M70379</link>
      <description>Thanks. Firstly I cannot use var. Secondly (tried this) but it does not change the background color but prints the format values.</description>
      <pubDate>Mon, 14 May 2018 10:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/461969#M70379</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-05-14T10:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: apply format to proc print without var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/461971#M70380</link>
      <description>&lt;P&gt;You can always use var, even if its a matter of doing:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  select name into :vlist separated by " " 
  from sashelp.vcolumn 
  where libname="WORK" and memname="TEMP";
quit;

proc print data=temp;
  var &amp;amp;vlist.;
run;&lt;/PRE&gt;
&lt;P&gt;"Can't" is not in programming.&lt;/P&gt;
&lt;P&gt;As for the issue, the key is to use the _numeric_ SAS command, which means all numeric variables:&lt;/P&gt;
&lt;PRE&gt;proc print data=temp;
  var _numeric_ / style(data)=[background=bla.];
run;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 May 2018 10:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/461971#M70380</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-14T10:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: apply format to proc print without var</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/462027#M70381</link>
      <description>wow this is exactly what I needed (-:</description>
      <pubDate>Mon, 14 May 2018 12:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/apply-format-to-proc-print-without-var/m-p/462027#M70381</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2018-05-14T12:58:38Z</dc:date>
    </item>
  </channel>
</rss>

