<?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: dropping variables that are not one word in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187139#M47526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your variable NAME is AT and that's what you should use in your code. &lt;/P&gt;&lt;P&gt;Your variable LABEL is Assets-Total &lt;/P&gt;&lt;P&gt;You can switch the view in SAS by going to View&amp;gt;Column Names, but this doesn't 'stick'. &lt;/P&gt;&lt;P&gt;Yes its a pain in the ass.&amp;nbsp; Another option is to strip all labels from a dataset, but with truncated variable names that has its own problems.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I believe the following line will remove the labels from all variables.&lt;/P&gt;&lt;P&gt;attrib _all_ label = "";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2014 04:06:39 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-04-21T04:06:39Z</dc:date>
    <item>
      <title>dropping variables that are not one word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187136#M47523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i want to drop a variable called "global company id"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i drop this?&lt;/P&gt;&lt;P&gt;simnply saying: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work1; &lt;/P&gt;&lt;P&gt;set base1 (drop = global company key);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is not working. thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 03:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187136#M47523</guid>
      <dc:creator>aarony</dc:creator>
      <dc:date>2014-04-21T03:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: dropping variables that are not one word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187137#M47524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS doesn't&amp;nbsp; usually allow variable names with spaces, so either the variable name is actually global_company_id, or if it actually has spaces you need to refer to it as "global company id"n.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 03:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187137#M47524</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-21T03:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: dropping variables that are not one word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187138#M47525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much for your kind reply Reeze:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what i got from proc contents&lt;/P&gt;&lt;P&gt;11 at&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp; 8 F18.4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assets - Total&lt;/P&gt;&lt;P&gt;&amp;nbsp; 12 capx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp; 8 F18.4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Capital Expenditures&lt;/P&gt;&lt;P&gt;&amp;nbsp; 13 ceq&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp; 8 F18.4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Common/Ordinary Equity - Total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 9 conm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Char&amp;nbsp; 57 $57.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $57.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 5 consol&amp;nbsp;&amp;nbsp; Char&amp;nbsp;&amp;nbsp; 2 $2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level of Consolidation - Company Annual Descriptor&lt;/P&gt;&lt;P&gt;&amp;nbsp; 22 costat&amp;nbsp;&amp;nbsp; Char&amp;nbsp;&amp;nbsp; 1 $1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Active/Inactive Status Marker&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i view table i see Assets-total. is it possible to at instead of assets-total. it is very difficult to code by looking at the view table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 04:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187138#M47525</guid>
      <dc:creator>aarony</dc:creator>
      <dc:date>2014-04-21T04:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: dropping variables that are not one word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187139#M47526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your variable NAME is AT and that's what you should use in your code. &lt;/P&gt;&lt;P&gt;Your variable LABEL is Assets-Total &lt;/P&gt;&lt;P&gt;You can switch the view in SAS by going to View&amp;gt;Column Names, but this doesn't 'stick'. &lt;/P&gt;&lt;P&gt;Yes its a pain in the ass.&amp;nbsp; Another option is to strip all labels from a dataset, but with truncated variable names that has its own problems.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I believe the following line will remove the labels from all variables.&lt;/P&gt;&lt;P&gt;attrib _all_ label = "";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 04:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187139#M47526</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-21T04:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: dropping variables that are not one word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187140#M47527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use command instead of the point &amp;amp; click menu to open a data set: Vt &amp;lt;data set name goes here&amp;gt;;colnames; will open view table with names instead of labels.&lt;/P&gt;&lt;P&gt;Or better, open the Keys menu, default F9, and add a command to a key:&lt;/P&gt;&lt;P&gt;vt _last_; colnames;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pressing the key combination you selected will bring up the last created data set with column names.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 15:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187140#M47527</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-04-21T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: dropping variables that are not one word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187141#M47528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that's handy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd still prefer an option to have the column names show by default rather than the labels.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 15:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187141#M47528</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-21T15:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: dropping variables that are not one word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187142#M47529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steps 1 through 4 here make the column names the default&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://listserv.uga.edu/cgi-bin/wa?A2=ind0708d&amp;amp;L=sas-l&amp;amp;P=6458"&gt;http://listserv.uga.edu/cgi-bin/wa?A2=ind0708d&amp;amp;L=sas-l&amp;amp;P=6458&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 15:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187142#M47529</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2014-04-21T15:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: dropping variables that are not one word</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187143#M47530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if you want to sort the data in the tables or make data edits add openmode=edit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 16:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dropping-variables-that-are-not-one-word/m-p/187143#M47530</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-04-21T16:06:35Z</dc:date>
    </item>
  </channel>
</rss>

