<?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 to put validation checks for column values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-put-validation-checks-for-column-values/m-p/914785#M360486</link>
    <description>&lt;P&gt;Did you check your SAS log? Both of these statements contain syntax errors and the SAS log will contain error messages pointing out where these are.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 00:10:24 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2024-02-07T00:10:24Z</dc:date>
    <item>
      <title>How to put validation checks for column values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-put-validation-checks-for-column-values/m-p/914761#M360478</link>
      <description>&lt;P&gt;I have an excel file where I need to validate column values before I load it to the actual dataset.&lt;/P&gt;&lt;P&gt;custno which is a char column and reqid which is numeric column.&lt;/P&gt;&lt;P&gt;Tried below 2 options in my code but they didn't work.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;if (is number(number)) error_message = "it is not  a number" ;
if digit(number)&amp;gt;0 then put 'wrong var'  ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 20:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-put-validation-checks-for-column-values/m-p/914761#M360478</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2024-02-06T20:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to put validation checks for column values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-put-validation-checks-for-column-values/m-p/914776#M360481</link>
      <description>&lt;P&gt;Look at these SAS functions :&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;ISALPHA&lt;/LI&gt;
&lt;LI&gt;ISNUMBER&lt;/LI&gt;
&lt;LI&gt;ANYALPHA&lt;/LI&gt;
&lt;LI&gt;NOTALPHA&lt;/LI&gt;
&lt;LI&gt;ANYALNUM&lt;/LI&gt;
&lt;LI&gt;ANYDIGIT&lt;/LI&gt;
&lt;LI&gt;NOTDIGIT&lt;/LI&gt;
&lt;LI&gt;ANYPUNCT&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 22:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-put-validation-checks-for-column-values/m-p/914776#M360481</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-02-06T22:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to put validation checks for column values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-put-validation-checks-for-column-values/m-p/914785#M360486</link>
      <description>&lt;P&gt;Did you check your SAS log? Both of these statements contain syntax errors and the SAS log will contain error messages pointing out where these are.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 00:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-put-validation-checks-for-column-values/m-p/914785#M360486</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-02-07T00:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to put validation checks for column values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-put-validation-checks-for-column-values/m-p/914792#M360490</link>
      <description>Kajal,&lt;BR /&gt;&lt;BR /&gt;If — then — else&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if (is number(number)) error_message = "it is not a number" ; — missing then keyword&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if digit(number)&amp;gt;0 then put 'wrong var' ;&lt;BR /&gt;Missing column name assignment.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Feb 2024 02:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-put-validation-checks-for-column-values/m-p/914792#M360490</guid>
      <dc:creator>rvikram</dc:creator>
      <dc:date>2024-02-07T02:22:51Z</dc:date>
    </item>
  </channel>
</rss>

