<?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: determining data type in SAS/IML in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/determining-data-type-in-SAS-IML/m-p/749875#M5500</link>
    <description>Thank you very much, Ian.</description>
    <pubDate>Wed, 23 Jun 2021 14:22:44 GMT</pubDate>
    <dc:creator>rbettinger</dc:creator>
    <dc:date>2021-06-23T14:22:44Z</dc:date>
    <item>
      <title>determining data type in SAS/IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/determining-data-type-in-SAS-IML/m-p/749762#M5497</link>
      <description>&lt;P&gt;I want to write a SAS/IML debugging module that I can call with an argument that may be numerical, character, or a list or a table.&lt;/P&gt;&lt;P&gt;This module would print varying messages conditional upon the data type, e.g., 'N', 'C', or, let's say, 'L' for a list, and 'T' for a table.&lt;/P&gt;&lt;P&gt;Is there a SAS/IML function that is similar to the DATA STEP vartype() function that I can use to return the data type of an argument to a module?&lt;/P&gt;&lt;P&gt;The "call struct()" module gives me good information. Is there some way to utilize this module as a function so that I may conditionally execute code based on the contents of a data structure?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 00:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/determining-data-type-in-SAS-IML/m-p/749762#M5497</guid>
      <dc:creator>rbettinger</dc:creator>
      <dc:date>2021-06-23T00:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: determining data type in SAS/IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/determining-data-type-in-SAS-IML/m-p/749810#M5498</link>
      <description>&lt;P&gt;In IML the function is called TYPE() and works exactly how you are expecting, for example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   x = 4;
   if type(x)='N' then do;
     /* x is numeric so OK to do stuff... */ 
     x = x # 3;
	 print x;
   end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Jun 2021 08:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/determining-data-type-in-SAS-IML/m-p/749810#M5498</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2021-06-23T08:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: determining data type in SAS/IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/determining-data-type-in-SAS-IML/m-p/749875#M5500</link>
      <description>Thank you very much, Ian.</description>
      <pubDate>Wed, 23 Jun 2021 14:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/determining-data-type-in-SAS-IML/m-p/749875#M5500</guid>
      <dc:creator>rbettinger</dc:creator>
      <dc:date>2021-06-23T14:22:44Z</dc:date>
    </item>
  </channel>
</rss>

