<?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: How can you print the variable type for selected variables? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-you-print-the-variable-type-for-selected-variables/m-p/249441#M268690</link>
    <description>&lt;P&gt;Since you're familiar with PROC CONTENTS, you could use the tool you already know in this way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc contents data=have (keep=some list of variables);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2016 13:47:08 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-02-11T13:47:08Z</dc:date>
    <item>
      <title>How can you print the variable type for selected variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-you-print-the-variable-type-for-selected-variables/m-p/249373#M268687</link>
      <description>&lt;P&gt;I understand that I can check the variable type of ALL the&amp;nbsp;variables in a dataset by using PROC CONTENTS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But is there a way to print the variable type of selected variables&amp;nbsp;using the VAR and VTYPE statements?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 07:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-you-print-the-variable-type-for-selected-variables/m-p/249373#M268687</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-02-11T07:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can you print the variable type for selected variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-you-print-the-variable-type-for-selected-variables/m-p/249382#M268688</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n161ybp2fgdlotn1m7hs0slma0al.htm" target="_self"&gt;VTYPE&lt;/A&gt; do this. What is your point?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-you-print-the-variable-type-for-selected-variables/m-p/249382#M268688</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-02-11T08:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can you print the variable type for selected variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-you-print-the-variable-type-for-selected-variables/m-p/249391#M268689</link>
      <description>&lt;P&gt;You could manually do it, but you can also query SASHELP.VCOLUMN and control your print out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the output from the table and a basic proc sql will work. The comparisons are case sensitive so ensure it matches your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select name, type
from sashelp.vcolumn
where libname='SASHELP'
and memname='CLASS'
and upper(name) not in ('NAME', 'AGE');
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-you-print-the-variable-type-for-selected-variables/m-p/249391#M268689</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-11T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can you print the variable type for selected variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-you-print-the-variable-type-for-selected-variables/m-p/249441#M268690</link>
      <description>&lt;P&gt;Since you're familiar with PROC CONTENTS, you could use the tool you already know in this way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc contents data=have (keep=some list of variables);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 13:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-you-print-the-variable-type-for-selected-variables/m-p/249441#M268690</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-02-11T13:47:08Z</dc:date>
    </item>
  </channel>
</rss>

