<?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: determining corrent column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/determining-corrent-column/m-p/32465#M6275</link>
    <description>You have a set statement there, not an infile statement. &lt;BR /&gt;
&lt;BR /&gt;
If this is what you mean, sas reads all columns at once. Read the about the program data vector in the online doc.</description>
    <pubDate>Wed, 20 May 2009 05:13:57 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2009-05-20T05:13:57Z</dc:date>
    <item>
      <title>determining corrent column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/determining-corrent-column/m-p/32463#M6273</link>
      <description>hi&lt;BR /&gt;
&lt;BR /&gt;
is there a way to determine the current column being read by sas and the stop reading the current record and go to the next one?&lt;BR /&gt;
&lt;BR /&gt;
let's say main table contains 10 columns. i want to read only columns 1-5.&lt;BR /&gt;
&lt;BR /&gt;
and what if i want to read columns 1-5,then 6-10?&lt;BR /&gt;
&lt;BR /&gt;
data x;&lt;BR /&gt;
  set main;&lt;BR /&gt;
  .&lt;BR /&gt;
  .&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
thanks a bunch!</description>
      <pubDate>Fri, 15 May 2009 07:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/determining-corrent-column/m-p/32463#M6273</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2009-05-15T07:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: determining corrent column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/determining-corrent-column/m-p/32464#M6274</link>
      <description>yes.&lt;BR /&gt;
but with so many possibilities and so little information about your data I thìnk the best advice for you would be to read up on infile options COLUMN, LRECL and a lot of examples of the  INPUT statement. &lt;BR /&gt;
It is one of the richest parts of the SAS language functionality. imho&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 15 May 2009 08:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/determining-corrent-column/m-p/32464#M6274</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-05-15T08:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: determining corrent column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/determining-corrent-column/m-p/32465#M6275</link>
      <description>You have a set statement there, not an infile statement. &lt;BR /&gt;
&lt;BR /&gt;
If this is what you mean, sas reads all columns at once. Read the about the program data vector in the online doc.</description>
      <pubDate>Wed, 20 May 2009 05:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/determining-corrent-column/m-p/32465#M6275</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-05-20T05:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: determining corrent column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/determining-corrent-column/m-p/32466#M6276</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
To  control observations  we can use _N_ which stores the observation number which sas is processing. you can subset your dataset by writing conditions on _N_.&lt;BR /&gt;
&lt;BR /&gt;
and there are two direct options FIRSTOBS,OBS&lt;BR /&gt;
&lt;BR /&gt;
if you set FIRSTOBS option to 6 and OBS to 10 &lt;BR /&gt;
sas starts reading from 6th observation to 10 th observation&lt;BR /&gt;
&lt;BR /&gt;
Hope this will help you,&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
skm</description>
      <pubDate>Wed, 20 May 2009 11:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/determining-corrent-column/m-p/32466#M6276</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-20T11:28:31Z</dc:date>
    </item>
  </channel>
</rss>

