<?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: Need to add a last column after using proc transpose in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369568#M88255</link>
    <description>&lt;P&gt;Please show what your resulting data set should look like. It is not clear in what way "how may form numbers would come in the data set&amp;nbsp;" would affect adding a single column called "date_Produced". What values should be assigned to that variable when added?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2017 16:02:10 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-22T16:02:10Z</dc:date>
    <item>
      <title>Need to add a last column after using proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369558#M88251</link>
      <description>&lt;P&gt;Hi I have a tranpose dataset (converting form numners in to variables) &amp;nbsp;with a prefix statement and Now I need to add a new column to the dataset Date_produced after the form_1-till the form_end . NoI will not be able to add the last couln sincI am not sure how may form numbers would come in the data set . Please help me how to tackel this issue .Below the code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data = wc_forms_nat out = nat_forms (drop = _name_) prefix = FORM_;
	var form_nbr ;
	by claim_id Form_Issued_Date ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369558#M88251</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2017-06-22T15:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add a last column after using proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369568#M88255</link>
      <description>&lt;P&gt;Please show what your resulting data set should look like. It is not clear in what way "how may form numbers would come in the data set&amp;nbsp;" would affect adding a single column called "date_Produced". What values should be assigned to that variable when added?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 16:02:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369568#M88255</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-22T16:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add a last column after using proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369576#M88259</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new date set columns shoule be in the following order&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clm sx date form_1 form_2 to form_n Date_Produced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using retain statement for ordering , later I realised that the form numbers may different (could be more sometimes ) , So how I can add Date_Produced column at the end of this data set ( Date_Produce column has the date of the report created (sysdate)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 16:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369576#M88259</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2017-06-22T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add a last column after using proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369583#M88263</link>
      <description>&lt;P&gt;Without any information on where that variable is coming or anything I would guess at:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;data nat_forms;&lt;BR /&gt;  set nat_forms;&lt;BR /&gt;  date_produced="01JAN2017"d;&lt;BR /&gt;run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Jun 2017 16:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369583#M88263</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-22T16:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add a last column after using proc transpose</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369600#M88268</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76823"&gt;@ambadi007&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new date set columns shoule be in the following order&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clm sx date form_1 form_2 to form_n Date_Produced&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried using retain statement for ordering , later I realised that the form numbers may different (could be more sometimes ) , So how I can add Date_Produced column at the end of this data set ( Date_Produce column has the date of the report created (sysdate)&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Concern about the order of columns in a data set should generally be a low priority. A vast majority of what you may do in SAS will no be affected by the order of the data. If you need columns in a specific order for use by another program after exporting data from SAS then use appropriate tools when writing the output to match. SAS is concerned about the variable &lt;STRONG&gt;name&lt;/STRONG&gt; for almost everything.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 17:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-add-a-last-column-after-using-proc-transpose/m-p/369600#M88268</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-22T17:22:16Z</dc:date>
    </item>
  </channel>
</rss>

