<?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 isblank and isnull fucntion from vfox to sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/isblank-and-isnull-fucntion-from-vfox-to-sas/m-p/572287#M161500</link>
    <description>&lt;P&gt;Hi all, I'm currently convert the code in visualfoxpro to sas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any difference between isblank and isnull function in vfox?&lt;/P&gt;&lt;P&gt;if I write the code in sas like this below, is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;VFOX CODE&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;use "D:\Fire\claim\Fire_clm_201903_addratecde.dbf"&lt;BR /&gt;scan for (not inli(allt(ratecde),"1000","COIN") and not isbl(ratecde) and not isnull(ratecde))&lt;BR /&gt;Do case&lt;BR /&gt;case inli(rsktyp,"FCL","FCZ","FLP")&lt;BR /&gt;repl cov_type with "Conloss"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(rsktyp,"FAZ","FDA","FIA")&lt;BR /&gt;repl cov_type with "IAR"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),4),"4006","4008")&lt;BR /&gt;repl cov_type with "HH"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),4),"4001","4005")&lt;BR /&gt;repl cov_type with "HO"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;otherwise&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DO casecase inli(left(allt(ratecde),2),"10")&lt;BR /&gt;repl cov_type with "MD1"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),2),"11")&lt;BR /&gt;repl cov_type with "MD2"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),2),"12")&lt;BR /&gt;repl cov_type with "MD3"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),2),"14")&lt;BR /&gt;repl cov_type with "MD4"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),2),"29")&lt;BR /&gt;repl cov_type with "MD5"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;otherwise&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;repl cov_type with "MD6"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;endcase&lt;BR /&gt;endcase&lt;BR /&gt;endscan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;MY Code in sas&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ratecde^=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'1000'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ratecde^=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'coin'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;and&lt;/FONT&gt;&lt;FONT color="#ff6600"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; ratecde^=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rsktyp in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FCL'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FCZ'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FLP'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Conloss'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rsktyp in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FAZ'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FDA'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FIA'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'IAR'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test1 in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'4006'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'4008'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'HH'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test1 in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'4001'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'4005'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'HO'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;11&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD2'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD3'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;14&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD4'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;29&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD5'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD6'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 03:20:01 GMT</pubDate>
    <dc:creator>Kayla_Tan222</dc:creator>
    <dc:date>2019-07-10T03:20:01Z</dc:date>
    <item>
      <title>isblank and isnull fucntion from vfox to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/isblank-and-isnull-fucntion-from-vfox-to-sas/m-p/572287#M161500</link>
      <description>&lt;P&gt;Hi all, I'm currently convert the code in visualfoxpro to sas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any difference between isblank and isnull function in vfox?&lt;/P&gt;&lt;P&gt;if I write the code in sas like this below, is this correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;VFOX CODE&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;use "D:\Fire\claim\Fire_clm_201903_addratecde.dbf"&lt;BR /&gt;scan for (not inli(allt(ratecde),"1000","COIN") and not isbl(ratecde) and not isnull(ratecde))&lt;BR /&gt;Do case&lt;BR /&gt;case inli(rsktyp,"FCL","FCZ","FLP")&lt;BR /&gt;repl cov_type with "Conloss"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(rsktyp,"FAZ","FDA","FIA")&lt;BR /&gt;repl cov_type with "IAR"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),4),"4006","4008")&lt;BR /&gt;repl cov_type with "HH"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),4),"4001","4005")&lt;BR /&gt;repl cov_type with "HO"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;otherwise&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DO casecase inli(left(allt(ratecde),2),"10")&lt;BR /&gt;repl cov_type with "MD1"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),2),"11")&lt;BR /&gt;repl cov_type with "MD2"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),2),"12")&lt;BR /&gt;repl cov_type with "MD3"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),2),"14")&lt;BR /&gt;repl cov_type with "MD4"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;case inli(left(allt(ratecde),2),"29")&lt;BR /&gt;repl cov_type with "MD5"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;otherwise&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;repl cov_type with "MD6"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;endcase&lt;BR /&gt;endcase&lt;BR /&gt;endscan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;MY Code in sas&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ratecde^=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'1000'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;and&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ratecde^=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'coin'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;and&lt;/FONT&gt;&lt;FONT color="#ff6600"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; ratecde^=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rsktyp in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FCL'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FCZ'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FLP'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Conloss'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; rsktyp in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FAZ'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FDA'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'FIA'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'IAR'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test1 in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'4006'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'4008'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'HH'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test1 in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'4001'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'4005'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'HO'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD1'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;11&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD2'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD3'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;14&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD4'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; test2=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;29&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD5'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;cov_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MD6'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 03:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/isblank-and-isnull-fucntion-from-vfox-to-sas/m-p/572287#M161500</guid>
      <dc:creator>Kayla_Tan222</dc:creator>
      <dc:date>2019-07-10T03:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: isblank and isnull fucntion from vfox to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/isblank-and-isnull-fucntion-from-vfox-to-sas/m-p/572289#M161501</link>
      <description>&lt;P&gt;I don't know vfox so don't know the intricacies of isblank and isnull.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Re: your code:&amp;nbsp; I like the missing() function, as it "does the right thing" whether the variable is character or numeric:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   chr1='';
   chr2=' ';
   chr3='  ';
   chr4='foo';
   num1=.;
   num2=.a;
   num3=.z;
   num4=123;
   ismiss_chr1=missing(chr1);
   ismiss_chr2=missing(chr2);
   ismiss_chr3=missing(chr3);
   ismiss_chr4=missing(chr4);
   ismiss_num1=missing(num1);
   ismiss_num2=missing(num2);
   ismiss_num3=missing(num3);
   ismiss_num4=missing(num4);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jul 2019 03:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/isblank-and-isnull-fucntion-from-vfox-to-sas/m-p/572289#M161501</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-07-10T03:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: isblank and isnull fucntion from vfox to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/isblank-and-isnull-fucntion-from-vfox-to-sas/m-p/572290#M161502</link>
      <description>&lt;P&gt;Wouldn't this be closer?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  if strip(RATECDE) not in('1000', 'COIN', ' ') then do;
    select;
      when(RSKTYP in ('FCL','FCZ','FLP')     ) COV_TYPE='Conloss';
      when(RSKTYP in ('FAZ','FDA','FIA')     ) COV_TYPE='IAR';
      when(strip(RATECDE) in: ('4006','4008')) COV_TYPE='HH';
      when(strip(RATECDE) in: ('4001','4005')) COV_TYPE='HO';
      when(strip(RATECDE) =: '10'            ) COV_TYPE='MD1';
      when(strip(RATECDE) =: '11'            ) COV_TYPE='MD2';
      when(strip(RATECDE) =: '12'            ) COV_TYPE='MD3';
      when(strip(RATECDE) =: '14'            ) COV_TYPE='MD4';
      when(strip(RATECDE) =: '29'            ) COV_TYPE='MD5';
      otherwise                                COV_TYPE='MD6';
    end;
  end;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 04:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/isblank-and-isnull-fucntion-from-vfox-to-sas/m-p/572290#M161502</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-07-10T04:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: isblank and isnull fucntion from vfox to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/isblank-and-isnull-fucntion-from-vfox-to-sas/m-p/572355#M161526</link>
      <description>&lt;P&gt;SAS stores character variables as fixed length strings that are padded with spaces.&amp;nbsp; So SAS cannot tell the difference between a variable that is all blanks and a "null" or "missing" value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 13:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/isblank-and-isnull-fucntion-from-vfox-to-sas/m-p/572355#M161526</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-10T13:54:01Z</dc:date>
    </item>
  </channel>
</rss>

