<?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: data set variable labels in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/data-set-variable-labels/m-p/442463#M4040</link>
    <description>&lt;P&gt;This works to preserve variable names, but not their labels.&amp;nbsp; I use variable names with a numbered prefix (comp1 comp2 comp3...) with variable labels that identify each one.&amp;nbsp; The numbered prefix allow reference to types of variable using the colon, eg comp:.&amp;nbsp; I sometimes do operations through IML and would like to output datasets with the original variable names and labels.&amp;nbsp; Can that be done?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 18:27:26 GMT</pubDate>
    <dc:creator>billroy3</dc:creator>
    <dc:date>2018-03-05T18:27:26Z</dc:date>
    <item>
      <title>data set variable labels</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/data-set-variable-labels/m-p/287020#M2910</link>
      <description>&lt;P&gt;If you have a data set that was created in base SAS, and then you are loading it into a proc iml to be used with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use dataset;&lt;/P&gt;&lt;P&gt;read all into matrix_name;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all the names of the variables of the data set get lost. Is there a way to avoid this and keep the variable names?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 20:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/data-set-variable-labels/m-p/287020#M2910</guid>
      <dc:creator>ejohnson96</dc:creator>
      <dc:date>2016-07-25T20:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: data set variable labels</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/data-set-variable-labels/m-p/287022#M2911</link>
      <description>&lt;P&gt;You've not specified the VAR clause on the READ statement, so you are getting the numeric variables. You can get the names of the variables by using this syntax:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;use sashelp.class;
read all into m[c=varNames];
close sashelp.class;

print varNames;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For more details, see &lt;A href="http://blogs.sas.com/content/iml/2012/01/16/reading-all-variables-into-a-matrix.html" target="_self"&gt;"Reading ALL variables INTO a matrix."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 20:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/data-set-variable-labels/m-p/287022#M2911</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-07-25T20:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: data set variable labels</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/data-set-variable-labels/m-p/442463#M4040</link>
      <description>&lt;P&gt;This works to preserve variable names, but not their labels.&amp;nbsp; I use variable names with a numbered prefix (comp1 comp2 comp3...) with variable labels that identify each one.&amp;nbsp; The numbered prefix allow reference to types of variable using the colon, eg comp:.&amp;nbsp; I sometimes do operations through IML and would like to output datasets with the original variable names and labels.&amp;nbsp; Can that be done?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 18:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/data-set-variable-labels/m-p/442463#M4040</guid>
      <dc:creator>billroy3</dc:creator>
      <dc:date>2018-03-05T18:27:26Z</dc:date>
    </item>
  </channel>
</rss>

