<?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 Using input statement , when the there is no column name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-input-statement-when-the-there-is-no-column-name/m-p/674911#M203267</link>
    <description>&lt;P&gt;Hi all, somebody help, I happen to have a dataset, where by i want to read the second column and the third column, The dataset is in csv format, so&amp;nbsp; the first column does n't have a name, how can i capture this under the input statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;*reading in the data;
data passenger;
  infile "path " dsd firstobs=2;
  input  time airpassengers;
run;&lt;/PRE&gt;&lt;P&gt;This is the code am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;this is how the dataset looks like in csv format&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himself_0-1596698226125.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48012i807000488BB97A53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="himself_0-1596698226125.png" alt="himself_0-1596698226125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The output is like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himself_1-1596698274909.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48013i4B47B312C0F332A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="himself_1-1596698274909.png" alt="himself_1-1596698274909.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the output has not captured the second column, kindly help&amp;nbsp;&lt;BR /&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 07:17:30 GMT</pubDate>
    <dc:creator>himself</dc:creator>
    <dc:date>2020-08-06T07:17:30Z</dc:date>
    <item>
      <title>Using input statement , when the there is no column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-input-statement-when-the-there-is-no-column-name/m-p/674911#M203267</link>
      <description>&lt;P&gt;Hi all, somebody help, I happen to have a dataset, where by i want to read the second column and the third column, The dataset is in csv format, so&amp;nbsp; the first column does n't have a name, how can i capture this under the input statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;*reading in the data;
data passenger;
  infile "path " dsd firstobs=2;
  input  time airpassengers;
run;&lt;/PRE&gt;&lt;P&gt;This is the code am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;this is how the dataset looks like in csv format&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himself_0-1596698226125.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48012i807000488BB97A53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="himself_0-1596698226125.png" alt="himself_0-1596698226125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The output is like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himself_1-1596698274909.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48013i4B47B312C0F332A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="himself_1-1596698274909.png" alt="himself_1-1596698274909.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the output has not captured the second column, kindly help&amp;nbsp;&lt;BR /&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 07:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-input-statement-when-the-there-is-no-column-name/m-p/674911#M203267</guid>
      <dc:creator>himself</dc:creator>
      <dc:date>2020-08-06T07:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using input statement , when the there is no column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-input-statement-when-the-there-is-no-column-name/m-p/674914#M203268</link>
      <description>&lt;P&gt;In the input-statement just add a variable for the unnamed column and add a drop-statement to prevent the variable from being written to the dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input ignore_me time airpassengers;
drop ignore_me;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Aug 2020 07:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-input-statement-when-the-there-is-no-column-name/m-p/674914#M203268</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-08-06T07:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using input statement , when the there is no column name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-input-statement-when-the-there-is-no-column-name/m-p/674916#M203270</link>
      <description>Hi thanks Alot, it has worked out&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Aug 2020 07:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-input-statement-when-the-there-is-no-column-name/m-p/674916#M203270</guid>
      <dc:creator>himself</dc:creator>
      <dc:date>2020-08-06T07:44:12Z</dc:date>
    </item>
  </channel>
</rss>

