<?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 use Controlin or controlout option in proc format? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Controlin-or-controlout-option-in-proc-format/m-p/86875#M257056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;I have something like&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value $country&lt;/P&gt;&lt;P&gt;"United states of America"="US"&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;"Russia"= "RU";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;about 22 countries list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know how to use control in and out format if that can be used&amp;nbsp; to parametrize user defined formats. Is it possible to make this existing proc format statements(like the above) read a new a new list of&amp;nbsp; different countries and their label by using a parameter?&amp;nbsp; I see the next list is having countries staring from "argentina"= "arg"...."India"=Ïnd" and also the point to note is that the count of countries tend to differ too depending on what's in the next list..A macro will help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would mean a lot. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 May 2013 13:53:13 GMT</pubDate>
    <dc:creator>Allaluiah</dc:creator>
    <dc:date>2013-05-27T13:53:13Z</dc:date>
    <item>
      <title>How to use Controlin or controlout option in proc format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Controlin-or-controlout-option-in-proc-format/m-p/86875#M257056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;I have something like&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value $country&lt;/P&gt;&lt;P&gt;"United states of America"="US"&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;"Russia"= "RU";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;about 22 countries list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know how to use control in and out format if that can be used&amp;nbsp; to parametrize user defined formats. Is it possible to make this existing proc format statements(like the above) read a new a new list of&amp;nbsp; different countries and their label by using a parameter?&amp;nbsp; I see the next list is having countries staring from "argentina"= "arg"...."India"=Ïnd" and also the point to note is that the count of countries tend to differ too depending on what's in the next list..A macro will help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would mean a lot. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 13:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Controlin-or-controlout-option-in-proc-format/m-p/86875#M257056</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2013-05-27T13:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Controlin or controlout option in proc format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-Controlin-or-controlout-option-in-proc-format/m-p/86876#M257057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the cntlout= option to copy all existing formats to a SAS dataset.&amp;nbsp; This can be distributed for review or stored as a backup.&amp;nbsp; It can be exported to Excel for amendment and then imported back into SAS.&amp;nbsp; There are a lot of columns but the main ones to review are called &lt;STRONG&gt;start&lt;/STRONG&gt; and &lt;STRONG&gt;end, &lt;/STRONG&gt; the start and end values for a range covered by a single formatted value.&amp;nbsp; Additional rows can be entered if required.&amp;nbsp; The modified table can then be read back into proc format using cntlin=.&amp;nbsp; Make sure no-one has renamed any of the columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc format cntlin=work.formatlist ; quit ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create a cntlin table to add a new format into the library, from a lookup table in the database.&amp;nbsp; At a minimum you need to define s &lt;STRONG&gt;start&lt;/STRONG&gt; column, a &lt;STRONG&gt;label&lt;/STRONG&gt; column to hold the formatted value, and a &lt;STRONG&gt;fmtname&lt;/STRONG&gt; column as the name of the format.&amp;nbsp; A HLO column is often useful to define how the format will handle out of range values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 15:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-Controlin-or-controlout-option-in-proc-format/m-p/86876#M257057</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2013-05-27T15:02:27Z</dc:date>
    </item>
  </channel>
</rss>

