<?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 data without give them names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/523800#M142361</link>
    <description>&lt;P&gt;Yes&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input (var1 - var300) ($); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and if you want to specify length, just do so like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input (var1 - var300) (:$8.); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or using length statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length var1-var300 $10;
input var1-var300;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Dec 2018 21:41:02 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-12-28T21:41:02Z</dc:date>
    <item>
      <title>read raw data without give them names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/523799#M142360</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want infile a raw data with comma dlm, I don't want to name for each columns so want to use a simple way:&lt;/P&gt;
&lt;PRE&gt;data readraw;
infile "c:\test\abc.txt" dsd dlm=',' MISSOVER LRECL=2000  firstobs=2;
INPUT var1 $ var2 $ var3 $ var4 var5 $ /*i have total 300 columns need to be read,,,,,,,,,,;*/;

RUN;&lt;/PRE&gt;
&lt;P&gt;I have 300 columns need to be read, is there an simple way to do this? like input var1 $ -- var300 ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I know numeric variable works in this way ,but character not....&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 21:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/523799#M142360</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2018-12-28T21:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: read raw data without give them names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/523800#M142361</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input (var1 - var300) ($); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and if you want to specify length, just do so like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input (var1 - var300) (:$8.); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or using length statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length var1-var300 $10;
input var1-var300;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 21:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/523800#M142361</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-12-28T21:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: read raw data without give them names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/523801#M142362</link>
      <description>&lt;P&gt;Also, you could try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array var{300} $;
input var{*} ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;and if you want to specify length, just do so like&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array var{300} $8;
input var{*} ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Dec 2018 21:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/523801#M142362</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-12-28T21:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: read raw data without give them names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/523821#M142371</link>
      <description>&lt;P&gt;If you don't need all variables as character, try using proc import:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import file="c:\test\abc.txt"  dbms=csv  out=work.class replace;
	getnames=no;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Dec 2018 11:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/523821#M142371</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2018-12-29T11:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: read raw data without give them names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/524331#M142583</link>
      <description>&lt;P&gt;&amp;nbsp;(var1 - var5) ($);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is good answer&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 17:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-raw-data-without-give-them-names/m-p/524331#M142583</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2019-01-03T17:54:37Z</dc:date>
    </item>
  </channel>
</rss>

