<?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: Datatype in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Datatype-in-SAS/m-p/632115#M187373</link>
    <description>&lt;P&gt;Here you go:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA test;
  empName = 'Rob';
  empSal = 2000;
  typeOfEmpName = vtype(empName); /* need function here that will take empName as an argument and return the type*/
  typeOfEmpSal = vtype(empSal);   /* need function here that will take empSal as an argument and return the type*/
RUN;
proc print data=test;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The way I normally find functions quickly.&lt;/P&gt;
&lt;P&gt;I go to the docu where I've got all functions listed by category like &lt;A href="https://go.documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n01f5qrjoh9h4hn1olbdpb5pr2td.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Then I either just search in the browser - for your case here I've just searched with keyword &lt;EM&gt;type&lt;/EM&gt;&amp;nbsp;- or I go to the relevant category and just browse over the descriptions. ...or I know a function name related to what I need, search for this one and then look within the same category if there is something suited.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Mar 2020 02:05:38 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2020-03-15T02:05:38Z</dc:date>
    <item>
      <title>Datatype in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datatype-in-SAS/m-p/632111#M187370</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to check the data type of a variable within a DATASET. Is there any function to check this?&lt;/P&gt;&lt;P&gt;I meant in other programming like PYTHON, we have &lt;STRONG&gt;type()&lt;/STRONG&gt; to check the datatype of variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;DATA test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; empName = 'Rob';&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; empSal = 2000;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typeOfEmpName = /* need function here that will take empName as an argument and return the type*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; typeOfEmpSal =&amp;nbsp;/* need function here that will take empSal as an argument and return the type*/&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;P Yadaw&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 06:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datatype-in-SAS/m-p/632111#M187370</guid>
      <dc:creator>yadaw</dc:creator>
      <dc:date>2020-03-14T06:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Datatype in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datatype-in-SAS/m-p/632112#M187371</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n161ybp2fgdlotn1m7hs0slma0al.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;VTYPE&lt;/A&gt;&amp;nbsp;function.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 06:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datatype-in-SAS/m-p/632112#M187371</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-14T06:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Datatype in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datatype-in-SAS/m-p/632114#M187372</link>
      <description>&lt;P&gt;Thank you, It returns, C for character and N for numeric datatype.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 06:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datatype-in-SAS/m-p/632114#M187372</guid>
      <dc:creator>yadaw</dc:creator>
      <dc:date>2020-03-14T06:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Datatype in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Datatype-in-SAS/m-p/632115#M187373</link>
      <description>&lt;P&gt;Here you go:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA test;
  empName = 'Rob';
  empSal = 2000;
  typeOfEmpName = vtype(empName); /* need function here that will take empName as an argument and return the type*/
  typeOfEmpSal = vtype(empSal);   /* need function here that will take empSal as an argument and return the type*/
RUN;
proc print data=test;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The way I normally find functions quickly.&lt;/P&gt;
&lt;P&gt;I go to the docu where I've got all functions listed by category like &lt;A href="https://go.documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n01f5qrjoh9h4hn1olbdpb5pr2td.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Then I either just search in the browser - for your case here I've just searched with keyword &lt;EM&gt;type&lt;/EM&gt;&amp;nbsp;- or I go to the relevant category and just browse over the descriptions. ...or I know a function name related to what I need, search for this one and then look within the same category if there is something suited.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 02:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Datatype-in-SAS/m-p/632115#M187373</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-15T02:05:38Z</dc:date>
    </item>
  </channel>
</rss>

