<?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 How to specify selected variables based on the common prefix of variable's names in proc import? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-specify-selected-variables-based-on-the-common-prefix-of/m-p/710681#M218827</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I'm using proc import to read in my excel data to SAS. I have many variables and would like to drop variables with names starting with raw_.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I achieve to allow limited variables based on the common prefix of variable names in the proc import or in data step using the data imported if doing this in proc import was impossible?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cruise&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import 
datafile="mydata_Jan11.xlsx"
out=ipd
dbms=xlsx replace;
getnames=yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 21:17:33 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2021-01-11T21:17:33Z</dc:date>
    <item>
      <title>How to specify selected variables based on the common prefix of variable's names in proc import?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-specify-selected-variables-based-on-the-common-prefix-of/m-p/710681#M218827</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I'm using proc import to read in my excel data to SAS. I have many variables and would like to drop variables with names starting with raw_.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I achieve to allow limited variables based on the common prefix of variable names in the proc import or in data step using the data imported if doing this in proc import was impossible?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cruise&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import 
datafile="mydata_Jan11.xlsx"
out=ipd
dbms=xlsx replace;
getnames=yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 21:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-specify-selected-variables-based-on-the-common-prefix-of/m-p/710681#M218827</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2021-01-11T21:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify selected variables based on the common prefix of variable's names in proc import?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-specify-selected-variables-based-on-the-common-prefix-of/m-p/710682#M218828</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import 
datafile="mydata_Jan11.xlsx"
out=ipd(drop=raw_:)
dbms=xlsx replace;
getnames=yes;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;drop=raw_:&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 21:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-specify-selected-variables-based-on-the-common-prefix-of/m-p/710682#M218828</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-01-11T21:25:09Z</dc:date>
    </item>
  </channel>
</rss>

