<?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 Format transpose in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-transpose/m-p/528152#M144104</link>
    <description>&lt;P&gt;I use Proc Transpose on a data set that results in column headers that are fiscal weeks.&amp;nbsp; The weeks extend back a year and are updated each week.&amp;nbsp; I would like to format the data in the new table without listing the new columns explicitly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several more queries after the transpose and refer to the transpose table columns using ' * '.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to format the VAR data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ROC TRANSPOSE DATA=have OUT=want;
BY type_code;
VAR money_spent;
ID Fiscal_week;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Jan 2019 20:52:04 GMT</pubDate>
    <dc:creator>yelkenli</dc:creator>
    <dc:date>2019-01-17T20:52:04Z</dc:date>
    <item>
      <title>Format transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-transpose/m-p/528152#M144104</link>
      <description>&lt;P&gt;I use Proc Transpose on a data set that results in column headers that are fiscal weeks.&amp;nbsp; The weeks extend back a year and are updated each week.&amp;nbsp; I would like to format the data in the new table without listing the new columns explicitly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several more queries after the transpose and refer to the transpose table columns using ' * '.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to format the VAR data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ROC TRANSPOSE DATA=have OUT=want;
BY type_code;
VAR money_spent;
ID Fiscal_week;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Jan 2019 20:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-transpose/m-p/528152#M144104</guid>
      <dc:creator>yelkenli</dc:creator>
      <dc:date>2019-01-17T20:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Format transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-transpose/m-p/528159#M144106</link>
      <description>&lt;P&gt;Add a PREFIX option to your date variables, say FW_ for fiscal week. Then you can shortcut reference them as FW_&lt;/P&gt;
&lt;P&gt;Add IDLABEL option so that your labels are still what you want to see.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ROC TRANSPOSE DATA=have OUT=want  &lt;FONT color="#800080"&gt;&lt;STRONG&gt;PREFIX=FW_;&lt;/STRONG&gt;&lt;/FONT&gt;
BY type_code;
VAR money_spent;
ID Fiscal_week;
&lt;FONT color="#800080"&gt;&lt;STRONG&gt;IDLABEL Fiscal_Week;&lt;/STRONG&gt;&lt;/FONT&gt;
RUN;

data WANT2;
set WANT;

&lt;FONT color="#800080"&gt;&lt;STRONG&gt;format FW_: dollar24.;&lt;/STRONG&gt;&lt;/FONT&gt;

run;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/255991"&gt;@yelkenli&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I use Proc Transpose on a data set that results in column headers that are fiscal weeks.&amp;nbsp; The weeks extend back a year and are updated each week.&amp;nbsp; I would like to format the data in the new table without listing the new columns explicitly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have several more queries after the transpose and refer to the transpose table columns using ' * '.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to format the VAR data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ROC TRANSPOSE DATA=have OUT=want;
BY type_code;
VAR money_spent;
ID Fiscal_week;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 21:03:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-transpose/m-p/528159#M144106</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-17T21:03:40Z</dc:date>
    </item>
  </channel>
</rss>

