<?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: importing many variables from a data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/650623#M195115</link>
    <description>&lt;P&gt;A text file is not a data set.&lt;/P&gt;
&lt;P&gt;A data set is a SAS table. At least when talking to SAS users like you are here. Use the proper terminology to get the best help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You want to import from a text file into a SAS data set.&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 07:46:46 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-05-26T07:46:46Z</dc:date>
    <item>
      <title>importing many variables from a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/650611#M195107</link>
      <description>&lt;P&gt;I have to import a few columns from a data set from 1 to 4. in future I might have from 1 to n. Currently, the issue I'm facing is if i give as&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;(diag_1&amp;nbsp;$&amp;nbsp;diag_2&amp;nbsp;$&amp;nbsp;diag_3&amp;nbsp;$&amp;nbsp;diag_4&amp;nbsp;$ ) its able to pick the string value , but if i give as (diag_1 $ - diag_4 $;) only in 1 and 4th we are getting the string , ,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Please can anyone help me on this, since I'm new to SAS.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;data file1;
infile '/folders/input/step1/file5.csv' dlm=',' firstobs=2;
input recipno diag_1 $ - diag_4 $;
run; &amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 07:01:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/650611#M195107</guid>
      <dc:creator>Shuail_Ibrahim</dc:creator>
      <dc:date>2020-05-26T07:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: importing many variables from a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/650618#M195112</link>
      <description>&lt;P&gt;This is the proper use of a variable list in the INPUT statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input recipno (diag_1-diag_4) ($);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It is a variation of what is described in &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=p0f9yk6pd4znukn1rlw6hzkg1url.htm&amp;amp;locale=en#n0th4s9u2hx756n1cojj31alypnt" target="_blank" rel="noopener"&gt;INPUT Statement: Formatted&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 07:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/650618#M195112</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-26T07:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: importing many variables from a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/650623#M195115</link>
      <description>&lt;P&gt;A text file is not a data set.&lt;/P&gt;
&lt;P&gt;A data set is a SAS table. At least when talking to SAS users like you are here. Use the proper terminology to get the best help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You want to import from a text file into a SAS data set.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 07:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/650623#M195115</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-26T07:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: importing many variables from a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/651325#M195416</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;, I'm extremely sorry for that, since I'm new to SAS that's why these sets of questions get arrived. if I get experienced I can match your terminology ... which will make you easier to answer.</description>
      <pubDate>Thu, 28 May 2020 08:07:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/651325#M195416</guid>
      <dc:creator>Shuail_Ibrahim</dc:creator>
      <dc:date>2020-05-28T08:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: importing many variables from a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/651579#M195505</link>
      <description>&lt;P&gt;No worries. That's exactly why I highlight the terminology issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 23:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-many-variables-from-a-data-set/m-p/651579#M195505</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-28T23:02:51Z</dc:date>
    </item>
  </channel>
</rss>

