<?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 take some variables from raw data using infile in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481016#M124366</link>
    <description>&lt;P&gt;&lt;SPAN&gt;You cannot INFILE an XLSX file in DATA step. &amp;nbsp;You need to use an engine that can read the data structure of an Excel spreadsheet.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can however import a .csv file with the INFILE Statement.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 05:00:26 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-07-25T05:00:26Z</dc:date>
    <item>
      <title>how to take some variables from raw data using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481004#M124356</link>
      <description>&lt;P&gt;given a data file with 100 observations of data, you only need to read in the first 70 columns&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 04:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481004#M124356</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-07-25T04:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to take some variables from raw data using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481006#M124357</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   do x=1 to 100;
      output;
   end;
run;

data want;
   set have(obs=70);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jul 2018 04:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481006#M124357</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-25T04:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to take some variables from raw data using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481007#M124358</link>
      <description>I want variables not observations</description>
      <pubDate>Wed, 25 Jul 2018 04:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481007#M124358</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-07-25T04:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to take some variables from raw data using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481009#M124360</link>
      <description>&lt;P&gt;Ah ok. Do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   array SomeArray{100} x1-x100;
run;

proc sql noprint;
   select name into :varnames separated by ' '
   from dictionary.columns
   where libname="WORK" and memname="HAVE" and varnum&amp;lt;=70
   order by varnum;
quit;

%put &amp;amp;varnames.;

data want;
   set have;
   keep &amp;amp;varnames.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jul 2018 04:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481009#M124360</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-25T04:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to take some variables from raw data using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481010#M124361</link>
      <description>It's good but how do we do using infile statement read only 70variables out&lt;BR /&gt;of 100 (is any options used like line,linesize,length</description>
      <pubDate>Wed, 25 Jul 2018 04:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481010#M124361</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-07-25T04:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to take some variables from raw data using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481012#M124363</link>
      <description>&lt;P&gt;What kind of data&amp;nbsp;source do you want to read from with this infile statement? a .txt, .xlsx file?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000146932.htm" target="_self"&gt;infile statement&lt;/A&gt; is used to read data from an external file.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 04:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481012#M124363</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-25T04:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to take some variables from raw data using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481014#M124364</link>
      <description>.xlsx file</description>
      <pubDate>Wed, 25 Jul 2018 04:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481014#M124364</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-07-25T04:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to take some variables from raw data using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481015#M124365</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;.xlsx file&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Reading a named range is possible if you setup fits - there are some many papers and posts explaining this, i don't like to repeat it. If you don't have a range, you have to import everything and drop the unwanted variables.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 04:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481015#M124365</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-07-25T04:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to take some variables from raw data using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481016#M124366</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You cannot INFILE an XLSX file in DATA step. &amp;nbsp;You need to use an engine that can read the data structure of an Excel spreadsheet.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can however import a .csv file with the INFILE Statement.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 05:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-take-some-variables-from-raw-data-using-infile/m-p/481016#M124366</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-25T05:00:26Z</dc:date>
    </item>
  </channel>
</rss>

