<?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: Interleaving fields &amp; more ?? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interleaving-fields-more/m-p/6481#M2535</link>
    <description>Hi:&lt;BR /&gt;
  I'd use PROC REPORT and/or ODS CSV or ODS TAGSETS.EXCELXP or ODS HTML.&lt;BR /&gt;
&lt;BR /&gt;
  Consider the following code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods csv file='myfile1.csv' ;&lt;BR /&gt;
ods msoffice2k file='myfile2.xls' style=sasweb;&lt;BR /&gt;
ods tagsets.excelxp file='myfile3.xls' style=sasweb;&lt;BR /&gt;
  proc report data=sashelp.class nowd;&lt;BR /&gt;
     column name age projage height projht;&lt;BR /&gt;
     define name / order;&lt;BR /&gt;
     define age / display;&lt;BR /&gt;
     define projage / computed;&lt;BR /&gt;
     define height /display;&lt;BR /&gt;
     define projht / computed;&lt;BR /&gt;
     compute projage;&lt;BR /&gt;
        ** age in 5 years;&lt;BR /&gt;
        projage = age + 5;&lt;BR /&gt;
     endcomp;&lt;BR /&gt;
     compute projht;&lt;BR /&gt;
        ** height at 1.25 of current height;&lt;BR /&gt;
        projht = height * 1.25;&lt;BR /&gt;
     endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
If you need more help with PROC REPORT or deciding which one of the ODS destinations is right for your needs, you might consider contacting Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 22 Jan 2008 20:53:11 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-01-22T20:53:11Z</dc:date>
    <item>
      <title>Interleaving fields &amp; more ??</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interleaving-fields-more/m-p/6480#M2534</link>
      <description>I have a dataset with columns:  code, name, a, b, c, aa, bb, cc.&lt;BR /&gt;
I want to format the dataset to following format &amp;amp; export to excel, what's the best way to do it?&lt;BR /&gt;
&lt;BR /&gt;
code, name, a, aa, aaa, b, bb, bbb, c, cc, ccc&lt;BR /&gt;
&lt;BR /&gt;
note: aaa is a calculated field aaa=a/aa, bbb, ccc are the same. &lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 22 Jan 2008 20:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interleaving-fields-more/m-p/6480#M2534</guid>
      <dc:creator>VicSAS</dc:creator>
      <dc:date>2008-01-22T20:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Interleaving fields &amp; more ??</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interleaving-fields-more/m-p/6481#M2535</link>
      <description>Hi:&lt;BR /&gt;
  I'd use PROC REPORT and/or ODS CSV or ODS TAGSETS.EXCELXP or ODS HTML.&lt;BR /&gt;
&lt;BR /&gt;
  Consider the following code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods csv file='myfile1.csv' ;&lt;BR /&gt;
ods msoffice2k file='myfile2.xls' style=sasweb;&lt;BR /&gt;
ods tagsets.excelxp file='myfile3.xls' style=sasweb;&lt;BR /&gt;
  proc report data=sashelp.class nowd;&lt;BR /&gt;
     column name age projage height projht;&lt;BR /&gt;
     define name / order;&lt;BR /&gt;
     define age / display;&lt;BR /&gt;
     define projage / computed;&lt;BR /&gt;
     define height /display;&lt;BR /&gt;
     define projht / computed;&lt;BR /&gt;
     compute projage;&lt;BR /&gt;
        ** age in 5 years;&lt;BR /&gt;
        projage = age + 5;&lt;BR /&gt;
     endcomp;&lt;BR /&gt;
     compute projht;&lt;BR /&gt;
        ** height at 1.25 of current height;&lt;BR /&gt;
        projht = height * 1.25;&lt;BR /&gt;
     endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
If you need more help with PROC REPORT or deciding which one of the ODS destinations is right for your needs, you might consider contacting Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 22 Jan 2008 20:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Interleaving-fields-more/m-p/6481#M2535</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-01-22T20:53:11Z</dc:date>
    </item>
  </channel>
</rss>

