<?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: How to set the nth observation as a variable from raw data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143865#M38276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh so sorry! I uploaded the wrong one. &lt;/P&gt;&lt;P&gt;It is the same data just missing the first 5 lines!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the right one! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry :smileyblush:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 20:29:32 GMT</pubDate>
    <dc:creator>BchBnz</dc:creator>
    <dc:date>2014-01-16T20:29:32Z</dc:date>
    <item>
      <title>How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143856#M38267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you are fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get SAS to read the 3rd observation in my raw data, and set it as a variable on its own.&lt;/P&gt;&lt;P&gt;I think you will get the picture better if you have a look at a screenshot of my data (I attached a picture).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a variable DATE that would have the value of the 3rd line in my data set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyone who could help me with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did everything I could to find a solution ... but no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bouchra&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/30553iAFC097FA72B7E53D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screenshot 2014-01-16 17.10.07.png" title="Screenshot 2014-01-16 17.10.07.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 17:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143856#M38267</guid>
      <dc:creator>BchBnz</dc:creator>
      <dc:date>2014-01-16T17:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143857#M38268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If undersand you correctly, you want this date value on each row of your result data set?&lt;/P&gt;&lt;P&gt;If so, the RETAIN statement could help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 17:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143857#M38268</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-01-16T17:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143858#M38269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would you want the output to look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to do two reads, one first with just that field and the second starting on line 6, with the rest of the info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 17:53:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143858#M38269</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-16T17:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143859#M38270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have several dates in several files. I want to create a date variable that should take the 3rd line's value for each date's data.&lt;/P&gt;&lt;P&gt;I could do retain date= 20080528, but I have a lot of dates so it would be impossible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to get SAS to read the 3rd line of each date's data and retain it as a variable called DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I explained what I wanted well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 17:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143859#M38270</guid>
      <dc:creator>BchBnz</dc:creator>
      <dc:date>2014-01-16T17:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143860#M38271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza for replying!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add a new variable DATE to my data set that would each time take the value of the 3rd line. &lt;/P&gt;&lt;P&gt;So for this data, DATE would be 20080528 for all observations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143860#M38271</guid>
      <dc:creator>BchBnz</dc:creator>
      <dc:date>2014-01-16T18:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143861#M38272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;need 2 reads&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143861#M38272</guid>
      <dc:creator>ping</dc:creator>
      <dc:date>2014-01-16T20:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143862#M38273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post some sample data as text?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143862#M38273</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-16T20:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143863#M38274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143863#M38274</guid>
      <dc:creator>BchBnz</dc:creator>
      <dc:date>2014-01-16T20:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143864#M38275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not the same as your picture, or with the same issue...&lt;/P&gt;&lt;P&gt;Is that string in the filename somewhere by chance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143864#M38275</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-16T20:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143865#M38276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh so sorry! I uploaded the wrong one. &lt;/P&gt;&lt;P&gt;It is the same data just missing the first 5 lines!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the right one! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry :smileyblush:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143865#M38276</guid>
      <dc:creator>BchBnz</dc:creator>
      <dc:date>2014-01-16T20:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143866#M38277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yes the original file name has the date on it.&lt;/P&gt;&lt;P&gt;it is called&amp;nbsp; o_equities_20080528.tas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143866#M38277</guid>
      <dc:creator>BchBnz</dc:creator>
      <dc:date>2014-01-16T20:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143867#M38278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your picture there are five lines of header information in the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile 'myfile' dsd dlm=',' truncover ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length date1 8 time 8 c1 $1 c2 $3 date2 8 n1 8 c3 $3 n2 8 n3 8 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat date1 date2 yymmdd8. time time8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format date1 date2 yymmdd10. time time8. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_=1 then do ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input / / date1 / / ;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt; input time c1 c2 date2 n1 c3 n2 n3 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143867#M38278</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-16T20:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143868#M38279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the original file also has the date in it, its easier to get it from there than from the file, use the filename option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;infile 'myfile' dsd dlm=',' truncover filename=source firstobs=5;&lt;/P&gt;&lt;P&gt;var=source;&lt;/P&gt;&lt;P&gt;input .....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143868#M38279</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-16T20:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143869#M38280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that Tom's code will do what you want as long as you add a retain statement.&amp;nbsp; i.e.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile "c:\art\o_equities_20080528.tas" dlm=",";&lt;/P&gt;&lt;P&gt;&amp;nbsp; length date 8 time 8 c1 $1 c2 $3 date2 8 n1 8 c3 $3 n2 8 n3 8 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat date date2 yymmdd8. time time8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format date date2 yymmdd10. time time8. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain date;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_=1 then do ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input / / date / / ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input time c1 c2 date2 n1 c3 n2 n3 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143869#M38280</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-01-16T20:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143870#M38281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can parse the date out of the filename and have SAS skip the first 5 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length filename $200 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile '&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;o_equities_20080528.tas&lt;/SPAN&gt;' dsd dlm=',' firstobs=6 truncover filename=filename;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date = input(scan(filename,3,'_.'),yymmdd8.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; format date date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input ..... ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143870#M38281</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-16T20:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143871#M38282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Art, I tried the same code and here what my data looks like&lt;IMG alt="Screenshot 2014-01-16 21.45.55.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4758_Screenshot 2014-01-16 21.45.55.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 21:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143871#M38282</guid>
      <dc:creator>BchBnz</dc:creator>
      <dc:date>2014-01-16T21:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143872#M38283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why but my data looks like the image I posted above ( that is what it looks like following Arthur's code. But it looks the same I do have missing values here and there)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed your code as you suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 21:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143872#M38283</guid>
      <dc:creator>BchBnz</dc:creator>
      <dc:date>2014-01-16T21:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143873#M38284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have to post the code that you ran.&amp;nbsp; You appear to be trying to input character fields as numbers which is one reason some of the variables would show up as missing.&amp;nbsp; Also, for the code to work, Date would have to be on the third row, in the format shown in your example, and the actual data would have to start at row 6 (like in your example).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 22:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143873#M38284</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-01-16T22:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143874#M38285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK here is the full code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FileName zipfile PIPE 'C:\Bch\7za.exe e "c:\data\o_equities_20080528.tas.zip" "o_equities_20080528.tas" -y -so';&lt;/P&gt;&lt;P&gt;Data dataset;&lt;/P&gt;&lt;P&gt;Infile zipfile&amp;nbsp; dlm= ',' truncover dsd firstobs=6;&lt;/P&gt;&lt;P&gt;length date 8 time 8 cpf $1 cnt $3 ba $1;&lt;/P&gt;&lt;P&gt;informat date ED yymmdd8. time time8.;&lt;/P&gt;&lt;P&gt;format date ED yymmdd10. time time8.;&lt;/P&gt;&lt;P&gt;retain date;&lt;/P&gt;&lt;P&gt;if _n_=1 then do;&lt;/P&gt;&lt;P&gt;input //date//;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input time cpf $ cnt $ ED vol ba $ price var1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 22:20:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143874#M38285</guid>
      <dc:creator>BchBnz</dc:creator>
      <dc:date>2014-01-16T22:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the nth observation as a variable from raw data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143875#M38286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works fine with the data you posted (with the RETAIN statement as Art reminded us).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; infile cards dsd dlm=',' truncover ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; length date1 8 time 8 c1 $1 c2 $3 date2 8 n1 8 c3 $3 n2 8 n3 8 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; informat date1 date2 yymmdd8. time time8.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; format date1 date2 yymmdd10. time time8. ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; retain date1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; if _n_=1 then do ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input / / date1 / / ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;input time c1 c2 date2 n1 c3 n2 n3 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;cards;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;05&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;20080528 223000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;20080528&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;999999&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;11169660&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:18:42,F,AC,20080601,,A,48.736,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:18:42,F,AC,20080601,,B,48.608,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:18:42,F,AC,20080701,,A,48.928,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:18:42,F,AC,20080701,,B,48.786,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:18:42,F,AC,20080801,,A,49.15,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:18:42,F,AC,20080801,,B,49.002,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:18:53,F,AC,20080601,,A,48.737,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:13,F,AC,20080701,,A,48.989,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:13,F,AC,20080601,,A,48.797,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:13,F,AC,20080801,,A,49.21,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:13,F,AC,20080801,,B,49.033,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:13,F,AC,20080701,,B,48.816,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:13,F,AC,20080601,,B,48.638,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:14,F,AC,20080801,,B,49.012,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:14,F,AC,20080701,,B,48.796,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:14,F,AC,20080601,,B,48.618,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:14,F,AC,20080801,,B,49.033,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:14,F,AC,20080701,,B,48.816,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:14,F,AC,20080601,,B,48.638,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:14,F,AC,20080801,,B,49.012,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:14,F,AC,20080701,,B,48.796,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:14,F,AC,20080601,,B,48.618,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:55,F,AC,20080701,,A,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:55,F,AC,20080701,,B,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:55,F,AC,20080601,,A,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:55,F,AC,20080601,,B,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:55,F,AC,20080801,,A,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:19:55,F,AC,20080801,,B,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:21:55,F,AC,20080801,,A,49.119,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:21:55,F,AC,20080801,,B,48.972,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:21:56,F,AC,20080601,,A,48.706,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:21:56,F,AC,20080601,,B,48.578,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:21:57,F,AC,20080701,,A,48.898,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:21:57,F,AC,20080701,,B,48.756,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:25:43,F,AC,20080601,,A,48.757,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:25:43,F,AC,20080701,,A,48.948,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:25:43,F,AC,20080801,,A,49.17,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:25:43,F,AC,20080701,,A,48.969,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:25:43,F,AC,20080601,,A,48.777,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:25:43,F,AC,20080801,,A,49.19,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:25:43,F,AC,20080701,,B,48.796,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:25:43,F,AC,20080601,,B,48.618,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:25:43,F,AC,20080801,,B,49.012,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:23,F,AC,20080701,,B,48.786,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:23,F,AC,20080601,,B,48.608,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:23,F,AC,20080801,,B,49.002,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:27,F,AC,20080701,,B,48.766,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:27,F,AC,20080601,,B,48.588,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:27,F,AC,20080801,,B,48.982,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:28,F,AC,20080601,,A,48.706,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:28,F,AC,20080701,,A,48.898,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:28,F,AC,20080801,,A,49.119,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:46,F,AC,20080601,,A,48.767,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:46,F,AC,20080701,,A,48.958,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:46,F,AC,20080801,,A,49.18,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:48,F,AC,20080701,,A,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:48,F,AC,20080701,,B,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:48,F,AC,20080601,,A,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:48,F,AC,20080601,,B,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:48,F,AC,20080801,,A,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:26:48,F,AC,20080801,,B,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:34:52,F,AC,20080701,,A,48.858,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:34:52,F,AC,20080701,,B,48.705,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:34:54,F,AC,20080801,,A,49.079,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:34:54,F,AC,20080801,,B,48.921,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:34:57,F,AC,20080601,,A,48.666,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:34:57,F,AC,20080601,,B,48.528,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:35:26,F,AC,20080801,,B,48.942,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:35:26,F,AC,20080601,,B,48.548,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:35:26,F,AC,20080701,,B,48.725,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:37,F,AC,20080601,,A,48.676,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:37,F,AC,20080701,,A,48.868,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:37,F,AC,20080801,,A,49.089,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:38,F,AC,20080701,,A,48.878,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:38,F,AC,20080601,,A,48.686,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:38,F,AC,20080801,,A,49.099,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:42,F,AC,20080701,,A,48.908,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:42,F,AC,20080601,,A,48.716,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:42,F,AC,20080801,,A,49.129,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:42,F,AC,20080701,,A,48.968,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:42,F,AC,20080601,,A,48.776,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:42,F,AC,20080801,,A,49.19,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:43,F,AC,20080701,,A,48.858,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:43,F,AC,20080601,,A,48.666,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:36:43,F,AC,20080801,,A,49.079,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:50,F,AC,20080601,,A,48.716,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:50,F,AC,20080701,,A,48.908,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:50,F,AC,20080801,,A,49.129,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:50,F,AC,20080701,,A,48.958,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:50,F,AC,20080601,,A,48.766,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:50,F,AC,20080801,,A,49.179,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:54,F,AC,20080701,,B,48.766,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:54,F,AC,20080601,,B,48.588,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:54,F,AC,20080801,,B,48.982,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:54,F,AC,20080601,,A,48.746,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:37:54,F,AC,20080701,,A,48.938,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:38:33,F,AC,20080801,,A,49.15,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:38:50,F,AC,20080701,,B,48.786,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:38:50,F,AC,20080601,,B,48.608,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:38:50,F,AC,20080801,,B,49.002,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:39:14,F,AC,20080701,,A,48.918,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:39:14,F,AC,20080601,,A,48.726,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:39:23,F,AC,20080801,,A,49.13,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:37,F,AC,20080801,,A,49.14,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:37,F,AC,20080701,,A,48.959,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:37,F,AC,20080601,,A,48.767,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:37,F,AC,20080801,,A,49.18,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:37,F,AC,20080701,,B,48.806,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:37,F,AC,20080601,,B,48.628,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:37,F,AC,20080801,,B,49.022,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:38,F,AC,20080701,,B,48.786,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:38,F,AC,20080601,,B,48.608,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:38,F,AC,20080801,,B,49.002,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:49,F,AC,20080701,,B,48.806,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:49,F,AC,20080601,,B,48.628,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:40:49,F,AC,20080801,,B,49.022,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:42:04,F,AC,20080801,,B,49.053,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:42:04,F,AC,20080601,,B,48.658,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:42:04,F,AC,20080701,,B,48.836,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:42:09,F,AC,20080801,,B,49.022,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:42:09,F,AC,20080601,,B,48.628,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:42:09,F,AC,20080701,,B,48.806,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:42:49,F,AC,20080701,,A,48.939,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:42:49,F,AC,20080601,,A,48.747,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:42:49,F,AC,20080801,,A,49.16,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:21,F,AC,20080701,,A,48.949,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:21,F,AC,20080601,,A,48.757,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:21,F,AC,20080801,,A,49.17,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:24,F,AC,20080701,,A,48.928,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:24,F,AC,20080601,,A,48.737,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:24,F,AC,20080801,,A,49.15,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:27,F,AC,20080701,,A,48.949,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:27,F,AC,20080601,,A,48.757,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:27,F,AC,20080801,,A,49.17,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:27,F,AC,20080701,,B,48.826,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:27,F,AC,20080601,,B,48.648,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:27,F,AC,20080801,,B,49.042,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:56,F,AC,20080601,,A,48.767,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:56,F,AC,20080701,,A,48.959,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:43:56,F,AC,20080801,,A,49.18,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:44:05,F,AC,20080601,,A,48.817,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:44:05,F,AC,20080701,,A,49.009,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:44:05,F,AC,20080801,,A,49.23,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:44:13,F,AC,20080601,,A,48.767,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:44:13,F,AC,20080701,,A,48.959,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:44:13,F,AC,20080801,,A,49.18,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:44:17,F,AC,20080601,,A,48.807,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:44:17,F,AC,20080701,,A,48.999,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;07:44:17,F,AC,20080801,,A,49.22,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc print; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time&amp;nbsp;&amp;nbsp;&amp;nbsp; c1&amp;nbsp;&amp;nbsp;&amp;nbsp; c2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date2&amp;nbsp;&amp;nbsp;&amp;nbsp; n1&amp;nbsp;&amp;nbsp;&amp;nbsp; c3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008-05-28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7:18:42&amp;nbsp;&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AC&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008-06-01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48.736&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008-05-28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7:18:42&amp;nbsp;&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AC&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008-06-01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48.608&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008-05-28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7:18:42&amp;nbsp;&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AC&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008-07-01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48.928&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008-05-28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7:18:42&amp;nbsp;&amp;nbsp;&amp;nbsp; F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AC&amp;nbsp;&amp;nbsp;&amp;nbsp; 2008-07-01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 48.786&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 22:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-set-the-nth-observation-as-a-variable-from-raw-data/m-p/143875#M38286</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-16T22:21:04Z</dc:date>
    </item>
  </channel>
</rss>

