<?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: proc report help in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126635#M10596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you have a variable that contained either 'A1' or 'A2' as the value and restructured your data a bit, PROC REPORT can give you the report you want. Screenshot produced with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;DATA newtest;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** read KW and ID vars.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** then hold input line;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** in order to write 2 obs out for every;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** dataline that is read in.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; INPUT kw id @;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** create type for A1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** read val as numeric;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; type = 'A1';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; input val @;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** create type for A2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** read val as numeric;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; type = 'A2';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; input val;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; DATALINES;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;34 50012127 1 6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;34 50012128 4 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;34 50012129 1 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;35 50012127 2 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;35 50012128 5 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;35 50012129 2 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;36 50012127 3 8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;36 50012128 3 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;36 50012129 23 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;37 50012127 4 9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;37 50012128 6 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;37 50012129 3 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;38 50012127 5 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;38 50012128 9 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;38 50012129 2 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;Run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\restructure_report.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=newtest;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title 'What is data';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=newtest nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title 'Proc REPORT with ACROSS';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column ('ID' id) ('Type' type) kw,val;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define id / group ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define type / group ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define kw / across;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define val / sum ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10673iD3889D2ADA3426BD/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="restructure_report.png" title="restructure_report.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2012 13:29:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-09-21T13:29:05Z</dc:date>
    <item>
      <title>proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126632#M10593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;I have a problem. I have that data step:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA test;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; INPUT kw id&amp;nbsp; A1 A2 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DATALINES; &lt;BR /&gt;34 50012127 1 6&lt;BR /&gt;34 50012128 4 3&lt;BR /&gt;34 50012129 1 1&lt;BR /&gt;35 50012127 2 7&lt;BR /&gt;35 50012128 5 1&lt;BR /&gt;35 50012129 2 2&lt;BR /&gt;36 50012127 3 8&lt;BR /&gt;36 50012128 3 2&lt;BR /&gt;36 50012129 23 3&lt;BR /&gt;37 50012127 4 9&lt;BR /&gt;37 50012128 6 2&lt;BR /&gt;37 50012129 3 3&lt;BR /&gt;38 50012127 5 10&lt;BR /&gt;38 50012128 9 2&lt;BR /&gt;38 50012129 2 3&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;How can I bulid or find under the table with the Proc report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 560px; border-collapse: collapse;"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="background: #dce6f1; border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; width: 60pt; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;" width="80"&gt;ID&lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; width: 60pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;" width="80"&gt;&lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; width: 60pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;" width="80"&gt;&lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; width: 60pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;" width="80"&gt;&lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; width: 60pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;" width="80"&gt;KW&lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; width: 60pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;" width="80"&gt;&lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; width: 60pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;" width="80"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;STRONG&gt;34&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;STRONG&gt;35&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;STRONG&gt;36&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;STRONG&gt;37&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;STRONG&gt;38&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="background: #dce6f1; border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;50012127&amp;nbsp; &lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;A1&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;4&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;A2&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="background: #dce6f1; border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;50012128&amp;nbsp; &lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;A1&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;4&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;5&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;6&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;A2&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="background: #dce6f1; border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;50012129&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;A1&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;23&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;A2&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="background: #dce6f1; border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;50012125&amp;nbsp; &lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;A1&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;6&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;A2&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD align="right" height="17" style="background: #dce6f1; border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;50012122&amp;nbsp; &lt;/TD&gt;&lt;TD style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;A1&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;6&lt;/TD&gt;&lt;TD align="right" style="background: #dce6f1; border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; text-underline-style: none; text-line-through: none; mso-pattern: #DCE6F1 none;"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt;"&gt;&lt;TD height="17" style="border-width: 0.5pt 0px 0.5pt 0.5pt; border-style: solid none solid solid; border-color: #95b3d7 black #95b3d7 #95b3d7; height: 12.75pt; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;A2&lt;/TD&gt;&lt;TD style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0px; border-style: solid none; border-color: #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="border-width: 0.5pt 0.5pt 0.5pt 0px; border-style: solid solid solid none; border-color: #95b3d7 #95b3d7 #95b3d7 black; color: black; font-family: Arial; font-size: 10pt; font-weight: 400; text-decoration: none; background-color: transparent; text-underline-style: none; text-line-through: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;BR /&gt;Celal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 18:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126632#M10593</guid>
      <dc:creator>arslan</dc:creator>
      <dc:date>2012-09-20T18:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126633#M10594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My SAS is busy so I'm unable to create code and test but you could PROC SORT by id, A1, A2 and then PROC TRANSPOSE to make your long table wide like your example and then it would make the PROC REPORT easier to code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 19:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126633#M10594</guid>
      <dc:creator>robby_beum</dc:creator>
      <dc:date>2012-09-20T19:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126634#M10595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;without ID i can build that table with PROC TRANSPOSE but i need also ID.&lt;/P&gt;&lt;P&gt;i use the Proc Report:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc report nowd data=test&lt;/P&gt;&lt;P&gt;col id (kw,(A1 A2));&lt;BR /&gt;define id /group ;&lt;BR /&gt;define kw / across ;&lt;BR /&gt;define A1 /sum ;&lt;BR /&gt;define A2 /sum&amp;nbsp; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Here I think this problem is column. I playing with column but i didn't find a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 20:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126634#M10595</guid>
      <dc:creator>arslan</dc:creator>
      <dc:date>2012-09-20T20:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126635#M10596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you have a variable that contained either 'A1' or 'A2' as the value and restructured your data a bit, PROC REPORT can give you the report you want. Screenshot produced with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;DATA newtest;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** read KW and ID vars.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** then hold input line;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** in order to write 2 obs out for every;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** dataline that is read in.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; INPUT kw id @;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** create type for A1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** read val as numeric;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; type = 'A1';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; input val @;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** create type for A2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; ** read val as numeric;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; type = 'A2';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; input val;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; DATALINES;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;34 50012127 1 6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;34 50012128 4 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;34 50012129 1 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;35 50012127 2 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;35 50012128 5 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;35 50012129 2 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;36 50012127 3 8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;36 50012128 3 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;36 50012129 23 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;37 50012127 4 9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;37 50012128 6 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;37 50012129 3 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;38 50012127 5 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;38 50012128 9 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;38 50012129 2 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;Run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\restructure_report.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=newtest;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title 'What is data';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=newtest nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title 'Proc REPORT with ACROSS';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column ('ID' id) ('Type' type) kw,val;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define id / group ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define type / group ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define kw / across;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define val / sum ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10673iD3889D2ADA3426BD/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="restructure_report.png" title="restructure_report.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 13:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126635#M10596</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-09-21T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc report help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126636#M10597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!, thanks a lot&lt;/P&gt;&lt;P&gt;Celal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 11:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-help/m-p/126636#M10597</guid>
      <dc:creator>arslan</dc:creator>
      <dc:date>2012-09-24T11:34:50Z</dc:date>
    </item>
  </channel>
</rss>

