<?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: Update/Move Column Contents in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Update-Move-Column-Contents/m-p/291058#M60293</link>
    <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this link to create a data step that you can post as text or attach as a text file for better description of your data: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It also helps to provide the layout of the expected results.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2016 19:43:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-08-11T19:43:22Z</dc:date>
    <item>
      <title>Update/Move Column Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Move-Column-Contents/m-p/291002#M60279</link>
      <description>&lt;P&gt;I have attached testdata.xls file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the issue, look at&amp;nbsp;Obs # 1.&lt;/P&gt;
&lt;P&gt;How can I make obs # 1 that should mimic to obs # 2 ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somehow file got corrupted, and contents splitted and shifted one column to the right in obs # 1 Column A (obs # 1),&lt;/P&gt;
&lt;P&gt;Obs # 2 is correct way of representation of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Obs # 1,&lt;/P&gt;
&lt;P&gt;Salesman_name_dept should be : Michael Perry A001 Manufacturing&lt;/P&gt;
&lt;P&gt;Sale_date should be : &amp;nbsp;10-Jan-09&lt;/P&gt;
&lt;P&gt;Reorder should be : 50&lt;/P&gt;
&lt;P&gt;Event should be : 10&lt;/P&gt;
&lt;P&gt;BuySell should be : 45.45&lt;/P&gt;
&lt;P&gt;Amount should be : 5000.75&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate any help !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Move-Column-Contents/m-p/291002#M60279</guid>
      <dc:creator>GPatel</dc:creator>
      <dc:date>2016-08-11T15:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Update/Move Column Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Move-Column-Contents/m-p/291058#M60293</link>
      <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this link to create a data step that you can post as text or attach as a text file for better description of your data: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It also helps to provide the layout of the expected results.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 19:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Move-Column-Contents/m-p/291058#M60293</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-11T19:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update/Move Column Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Move-Column-Contents/m-p/291149#M60308</link>
      <description>&lt;P&gt;You can repair your data-set &amp;nbsp;by overriding 1st observation values.&lt;/P&gt;&lt;P&gt;Pay attention to variables type: &amp;nbsp;CHAR or NUM to write the correct values as correct litterals;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;&amp;nbsp;set old;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;if _N_ = 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Salesman_name_dept = "Michael Perry A001 Manufacturing";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Sale_date = &amp;nbsp;'10Jan09'd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Reorder &amp;nbsp; &amp;nbsp;= 50;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Event = 10;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; BuySell = 45.45;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Amount = 5000.75;&lt;/P&gt;&lt;P&gt;&amp;nbsp;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 05:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Move-Column-Contents/m-p/291149#M60308</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-08-12T05:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update/Move Column Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Move-Column-Contents/m-p/291961#M60513</link>
      <description>&lt;P&gt;Issue has been resolved. Thanks to&amp;nbsp;SAS communities members !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- GPatel&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 17:58:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Move-Column-Contents/m-p/291961#M60513</guid>
      <dc:creator>GPatel</dc:creator>
      <dc:date>2016-08-16T17:58:27Z</dc:date>
    </item>
  </channel>
</rss>

