<?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 Proc report/ODS and formatting with call define in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-ODS-and-formatting-with-call-define/m-p/46453#M6078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a format in your call define. Check this paper out:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/resources/papers/proceedings10/153-2010.pdf"&gt;http://support.sas.com/resources/papers/proceedings10/153-2010.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vince provides an example using proc report and proc print.&lt;/P&gt;&lt;P&gt;The proc report example is almost identical to what you're doing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2011 20:04:17 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2011-08-10T20:04:17Z</dc:date>
    <item>
      <title>Proc report/ODS and formatting with call define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-ODS-and-formatting-with-call-define/m-p/46451#M6076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Today, using syntax I found in this forum, I used proc report and the call define terminology to create some custom colored output.&amp;nbsp; It worked fine, but I'm wondering if there was an easier way to do it for my dataset. I have 10 records, lab data each analyzed for 31 metals.&amp;nbsp; Each of the 31 metals is a variable, with a concentration listed for each sample.&amp;nbsp; I also have 31 flag variables 9one for each metal) indicating whether it was above or below a certain value.&amp;nbsp; I used the flag values (defined but not displayed) to create color coded output (traffic lighting). For example-- compute Tin; if (DQF_Tin="&amp;lt;") then call define ("Tin","style","style=[foreground=purple]"); else if (DQF_Tin="()") then call define ("Tin","style","style=[foreground=green]"); endcomp; compute Titanium; if (DQF_Titanium="&amp;lt;") then call define ("Titanium","style","style=[foreground=purple]"); else if (DQF_Titanium="()") then call define ("Titanium","style","style=[foreground=green]"); endcomp; There are 31 of these statements, one for each of the metals.&amp;nbsp; Was there an easier way?&amp;nbsp; I needed the 31 metal colums (plus a sample id) in the output, so I guess I have to define them all?&amp;nbsp; No shortcut? Thoughts appreciated. Thank you, Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 19:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-ODS-and-formatting-with-call-define/m-p/46451#M6076</guid>
      <dc:creator>NWV</dc:creator>
      <dc:date>2011-08-10T19:43:05Z</dc:date>
    </item>
    <item>
      <title>Proc report/ODS and formatting with call define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-ODS-and-formatting-with-call-define/m-p/46452#M6077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you post your code, and a short datastep showing what you datafile looks like, I'm sure that someone could suggest a shortcut.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 19:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-ODS-and-formatting-with-call-define/m-p/46452#M6077</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-10T19:51:45Z</dc:date>
    </item>
    <item>
      <title>Proc report/ODS and formatting with call define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-ODS-and-formatting-with-call-define/m-p/46453#M6078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a format in your call define. Check this paper out:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/resources/papers/proceedings10/153-2010.pdf"&gt;http://support.sas.com/resources/papers/proceedings10/153-2010.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vince provides an example using proc report and proc print.&lt;/P&gt;&lt;P&gt;The proc report example is almost identical to what you're doing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 20:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-ODS-and-formatting-with-call-define/m-p/46453#M6078</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-08-10T20:04:17Z</dc:date>
    </item>
    <item>
      <title>Proc report/ODS and formatting with call define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-ODS-and-formatting-with-call-define/m-p/46454#M6079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I totally agree that you ought to look at Vince's paper and using the methods he suggests will save you quite a bit of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, even though Vince probably knows more about the topic than anyone, you can still save some keystrokes by expanding his code even further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, Vince uses the following statements in applying the formats:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array name(10) $31 ('Haemoglobin_Result' 'Haematocrit_Result' 'RBC_Result' &lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'WBC_Result' 'Lymphocytes_Result' 'Monocytes_Result' &lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Neutrophils_Result' 'Eosinophils_Result' 'Basophils_Result'&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Platelets_Result');&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;array flag(10) Haemoglobin_Flag Haematocrit_Flag RBC_Flag WBC_Flag &lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp; Lymphocytes_Flag Monocytes_Flag Neutrophils_Flag Eosinophils_Flag&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp; Basophils_Flag Platelets_Flag;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, if you look at the data, Vince only used 10 of the 17 result and flag variables.&amp;nbsp; If you were actually interested in all of them, the keystrokes could be further reduced by using something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select quote(propcase(trim(name))) into :names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; separated by " "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname eq "SAMPLE" and&lt;/P&gt;&lt;P&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; memname eq "LABRESULTS" and&lt;/P&gt;&lt;P&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; name like '%_result'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select propcase(trim(name)) into :flags&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; separated by " "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname eq "SAMPLE" and&lt;/P&gt;&lt;P&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; memname eq "LABRESULTS" and&lt;/P&gt;&lt;P&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; name like '%_flag'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array name(17) $31 (&amp;amp;names.);&lt;/P&gt;&lt;P&gt;array flag(17) &amp;amp;flags.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, you could also use the same technique in a number of other places in his example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 04:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-ODS-and-formatting-with-call-define/m-p/46454#M6079</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-11T04:40:15Z</dc:date>
    </item>
  </channel>
</rss>

