<?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: read raw files and put few observations fron row to a different column in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530341#M73715</link>
    <description>Thank you everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Sat, 26 Jan 2019 18:29:39 GMT</pubDate>
    <dc:creator>Insh_2</dc:creator>
    <dc:date>2019-01-26T18:29:39Z</dc:date>
    <item>
      <title>read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530326#M73706</link>
      <description>&lt;P&gt;9aug11 112 9sept11 225&lt;/P&gt;&lt;P&gt;10aug11 226 10sep11 568&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have data like this in raw text file how to read it like&lt;/P&gt;&lt;P&gt;9aug11 112&lt;/P&gt;&lt;P&gt;10aug11 226&lt;/P&gt;&lt;P&gt;9sep11 225&lt;/P&gt;&lt;P&gt;10sep11 568&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 16:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530326#M73706</guid>
      <dc:creator>Insh_2</dc:creator>
      <dc:date>2019-01-26T16:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530327#M73707</link>
      <description>&lt;P&gt;Welcome to the SAS communities &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code looks something like this. However, is your second date value really&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;9sept11&lt;/STRONG&gt;? This will make the date9. informat result in a missing value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   infile "c:\Users\Peter\Desktop\mytxt.txt";
   input date:date9. value @@;
   format date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 16:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530327#M73707</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-26T16:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530328#M73708</link>
      <description>Hi,&lt;BR /&gt;Thank you for solution can you please me value@@</description>
      <pubDate>Sat, 26 Jan 2019 16:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530328#M73708</guid>
      <dc:creator>Insh_2</dc:creator>
      <dc:date>2019-01-26T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530329#M73709</link>
      <description>&lt;P&gt;I assume that you are asking for an explanation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;value&amp;nbsp;&lt;/STRONG&gt;is simply the name for the second variable in your data. I made that up. Could be any valid SAS variable name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@@&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;holds the input record for the execution of the next INPUT statement across iterations of the DATA step. You can read more about it in the &lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0oaql83drile0n141pdacojq97s.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=da#p1pks2mvy1sq09n1b6aasltbqczv" target="_self"&gt;SAS Input Statement Documentation&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 16:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530329#M73709</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-26T16:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530330#M73710</link>
      <description>&lt;P&gt;1Sep11 389.00 1Oct11 491.00 1Nov11 370.00 1Dec11 335.00&lt;BR /&gt;2Sep11 423.00 2Oct11 478.00 2Nov11 407.00 2Dec11 442.00&lt;BR /&gt;3Sep11 482.00 3Oct11 300.00 3Nov11 303.00 3Dec11 372.00&lt;BR /&gt;4Sep11 407.00 4Oct11 405.00 4Nov11 398.00 4Dec11 465.00&lt;BR /&gt;5Sep11 354.00 5Oct11 388.00 5Nov11 427.00 5Dec11 393.00&lt;BR /&gt;6Sep11 432.00 6Oct11 387.00 6Nov11 360.00 6Dec11 393.00&lt;BR /&gt;7Sep11 476.00 7Oct11 330.00 7Nov11 494.00 7Dec11 498.00&lt;BR /&gt;8Sep11 426.00 8Oct11 412.00 8Nov11 444.00 8Dec11 314.00&lt;BR /&gt;9Sep11 439.00 9Oct11 322.00 9Nov11 392.00 9Dec11 404.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my data is like that where there are different dates for different months&lt;/P&gt;&lt;P&gt;@@ is printing data like&lt;/P&gt;&lt;P&gt;1sep11&lt;/P&gt;&lt;P&gt;1oct11&lt;/P&gt;&lt;P&gt;1nov11&lt;/P&gt;&lt;P&gt;1dec11&lt;/P&gt;&lt;P&gt;2sep and so on..&lt;/P&gt;&lt;P&gt;but i want it like&lt;/P&gt;&lt;P&gt;1sep11&lt;/P&gt;&lt;P&gt;2sep11&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;1oct11&lt;/P&gt;&lt;P&gt;2oct11&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;1nov11&lt;/P&gt;&lt;P&gt;2nov11&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 16:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530330#M73710</guid>
      <dc:creator>Insh_2</dc:creator>
      <dc:date>2019-01-26T16:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530332#M73711</link>
      <description>&lt;P&gt;If you want the data sorted then use PROC SORT.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 17:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530332#M73711</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-01-26T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530334#M73712</link>
      <description>&lt;P&gt;Then do like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   infile "c:\Users\Peter\Desktop\mytxt.txt";
   input date value @@;
   informat date date9. value;

   format date date9. value 8.2;
run;

proc sort data=want;
   by date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Jan 2019 17:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530334#M73712</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-26T17:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530335#M73713</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;informat date date9. value 8.2;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why would you want to divide raw values that happened to not include a decimal point by 100?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 17:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530335#M73713</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-01-26T17:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530336#M73714</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;,&amp;nbsp;right as usual &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I corrected it.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 17:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530336#M73714</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-01-26T17:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: read raw files and put few observations fron row to a different column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530341#M73715</link>
      <description>Thank you everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sat, 26 Jan 2019 18:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/read-raw-files-and-put-few-observations-fron-row-to-a-different/m-p/530341#M73715</guid>
      <dc:creator>Insh_2</dc:creator>
      <dc:date>2019-01-26T18:29:39Z</dc:date>
    </item>
  </channel>
</rss>

