<?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 How to Abbreviate. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-Abbreviate/m-p/386453#M3232</link>
    <description>&lt;P&gt;I got a code as shown below. How do I abbreviate the if statements in a way that goes like this Chile-Japan without typing every one of them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data med;&lt;BR /&gt;infile "/folders/myshortcuts/sas/Vaccines.dat";&lt;BR /&gt;input&lt;BR /&gt;VacName $ 1-29&lt;BR /&gt;Mode $ 32-50&lt;BR /&gt;WInc 51-60&lt;BR /&gt;WDeath 61-70&lt;BR /&gt;Chile $ 71-73&lt;BR /&gt;Cuba $ 77-79&lt;BR /&gt;US $ 83-85&lt;BR /&gt;UK $ 89-91&lt;BR /&gt;Finland $ 95-97&lt;BR /&gt;Germany $ 101-103&lt;BR /&gt;SaudiArab $ 107-109&lt;BR /&gt;Ethiopia $ 113-115&lt;BR /&gt;Botswana $ 119-121&lt;BR /&gt;India $ 125-127&lt;BR /&gt;Australia $ 131-133&lt;BR /&gt;China $ 137-139&lt;BR /&gt;Japan $ 143-145&lt;BR /&gt;;&lt;BR /&gt;if WDeath = "" then WDeath = "0";&lt;BR /&gt;if WInc = "" then WDeath = "0";&lt;BR /&gt;if Chile = "" then Chile = "No";&lt;BR /&gt;if Cuba = "" then Cuba = "No";&lt;BR /&gt;if US = "" then US = "No";&lt;BR /&gt;if UK = "" then UK = "No";&lt;BR /&gt;if Finland = "" then Finland = "No";&lt;BR /&gt;if Germany = "" then Germany = "No";&lt;BR /&gt;if SaudiArab = "" then SaudiArab = "No";&lt;BR /&gt;if Ethiopia = "" then Ethiopia = "No";&lt;BR /&gt;if Botswana = "" then Botswana = "No";&lt;BR /&gt;if India = "" then India = "No";&lt;BR /&gt;if Australia = "" then Australia = "No";&lt;BR /&gt;if China = "" then China = "No";&lt;BR /&gt;if Japan = "" then Japan = "No";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=med;&lt;BR /&gt;format WInc comma10. WDeath comma8.;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 00:58:02 GMT</pubDate>
    <dc:creator>jermanie</dc:creator>
    <dc:date>2017-08-09T00:58:02Z</dc:date>
    <item>
      <title>How to Abbreviate.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-Abbreviate/m-p/386453#M3232</link>
      <description>&lt;P&gt;I got a code as shown below. How do I abbreviate the if statements in a way that goes like this Chile-Japan without typing every one of them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data med;&lt;BR /&gt;infile "/folders/myshortcuts/sas/Vaccines.dat";&lt;BR /&gt;input&lt;BR /&gt;VacName $ 1-29&lt;BR /&gt;Mode $ 32-50&lt;BR /&gt;WInc 51-60&lt;BR /&gt;WDeath 61-70&lt;BR /&gt;Chile $ 71-73&lt;BR /&gt;Cuba $ 77-79&lt;BR /&gt;US $ 83-85&lt;BR /&gt;UK $ 89-91&lt;BR /&gt;Finland $ 95-97&lt;BR /&gt;Germany $ 101-103&lt;BR /&gt;SaudiArab $ 107-109&lt;BR /&gt;Ethiopia $ 113-115&lt;BR /&gt;Botswana $ 119-121&lt;BR /&gt;India $ 125-127&lt;BR /&gt;Australia $ 131-133&lt;BR /&gt;China $ 137-139&lt;BR /&gt;Japan $ 143-145&lt;BR /&gt;;&lt;BR /&gt;if WDeath = "" then WDeath = "0";&lt;BR /&gt;if WInc = "" then WDeath = "0";&lt;BR /&gt;if Chile = "" then Chile = "No";&lt;BR /&gt;if Cuba = "" then Cuba = "No";&lt;BR /&gt;if US = "" then US = "No";&lt;BR /&gt;if UK = "" then UK = "No";&lt;BR /&gt;if Finland = "" then Finland = "No";&lt;BR /&gt;if Germany = "" then Germany = "No";&lt;BR /&gt;if SaudiArab = "" then SaudiArab = "No";&lt;BR /&gt;if Ethiopia = "" then Ethiopia = "No";&lt;BR /&gt;if Botswana = "" then Botswana = "No";&lt;BR /&gt;if India = "" then India = "No";&lt;BR /&gt;if Australia = "" then Australia = "No";&lt;BR /&gt;if China = "" then China = "No";&lt;BR /&gt;if Japan = "" then Japan = "No";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=med;&lt;BR /&gt;format WInc comma10. WDeath comma8.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 00:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-Abbreviate/m-p/386453#M3232</guid>
      <dc:creator>jermanie</dc:creator>
      <dc:date>2017-08-09T00:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Abbreviate.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-Abbreviate/m-p/386454#M3233</link>
      <description>&lt;P class="p1"&gt;something like this&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;data med;&lt;/P&gt;
&lt;P class="p1"&gt;set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;med;&lt;/P&gt;
&lt;P class="p1"&gt;array country{13}&amp;nbsp;&lt;SPAN&gt;Chile&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Cuba&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;US&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;UK&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Finland&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Germany&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SaudiArab&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Ethiopia &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Botswana&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;India &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Australia&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;China&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Japan&amp;nbsp;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;do i = 1 to 13;&lt;/P&gt;
&lt;P class="p1"&gt;if&amp;nbsp;&lt;SPAN&gt;country&lt;/SPAN&gt;{i} = "" then country{i} ="No"&lt;/P&gt;
&lt;P class="p1"&gt;end;&lt;/P&gt;
&lt;P class="p1"&gt;drop i;&lt;/P&gt;
&lt;P class="p1"&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 01:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-Abbreviate/m-p/386454#M3233</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-08-09T01:19:25Z</dc:date>
    </item>
  </channel>
</rss>

