<?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: Format Variable based on description in csv file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163303#M42386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;If you see attached csv file, it has 3 columns: Icd9 Code, CCS Group and CCS Description. With above syntax, I can group ICD Code in CCS group but cannot label it with CCS Description..&lt;/P&gt;&lt;P&gt;e.g. ICD code '3220',&amp;nbsp; or '3221' is formatted as&amp;nbsp; 76 (CCS Group) in proc freq result but&amp;nbsp; I wanted it as 'Meningitis' in result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 21:25:00 GMT</pubDate>
    <dc:creator>bikash</dc:creator>
    <dc:date>2015-02-12T21:25:00Z</dc:date>
    <item>
      <title>Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163294#M42377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have diagnosis variable in my dataset which is ICD Code. I want to format Diagnosis variable in&amp;nbsp; CCS Category which available in csv format (attached).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached csv file has 3 columns: 1. ICD-Code ( Diagnosis in my data-set), 2. CCS Category (I want&amp;nbsp; Diagnosis formatted&amp;nbsp; in CCS Category), 3. CCS Category Description (I want CCS Category to be labeled with this information)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Below is how csv file column looks like. &lt;/SPAN&gt;15,000 ICD Codes are grouped in clinically meaningful&amp;nbsp; 200 (approx) categories and I am trying to format Diagnosis Variable in my data set in those Categories. How can I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE height="26" style="height: 28px; width: 492px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;'ICD-9-CM CODE'&lt;/TD&gt;&lt;TD&gt;'CCS CATEGORY'&lt;/TD&gt;&lt;TD&gt;'CCS CATEGORY DESCRIPTION'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE height="379" style="width: 493px; height: 381px;" width="491"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;'3220 '&lt;/TD&gt;&lt;TD&gt;'76&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Meningitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'3221 '&lt;/TD&gt;&lt;TD&gt;'76&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Meningitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'3222 '&lt;/TD&gt;&lt;TD&gt;'76&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Meningitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'3229 '&lt;/TD&gt;&lt;TD&gt;'76&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Meningitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'0361 '&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'0462 '&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'0498 '&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'0499 '&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'0520 '&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'0543 '&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'0550 '&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'05601'&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'05821'&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'05829'&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;'0620 '&lt;/TD&gt;&lt;TD&gt;'77&amp;nbsp;&amp;nbsp; '&lt;/TD&gt;&lt;TD&gt;'Encephalitis'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163294#M42377</guid>
      <dc:creator>bikash</dc:creator>
      <dc:date>2015-02-11T15:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163295#M42378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, firstly you will need to import the CSV file into a dataset.&amp;nbsp; Once you have it in a dataset you can do a few things.&amp;nbsp; First one most people will recommend is to create format library from it, look up proc format in the SAS help.&amp;nbsp; From the above ID column is value, decode is in the last column.&amp;nbsp; You can then apply this format to you data item.&amp;nbsp; This method doesn't change the original data only the way it is displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is to use the data as a lookup:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table WANT as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A.*,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (select CCS_CAT from CODE_LIST where ICD9=A.ICD9) as FORMATTED_VALUE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAVE;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;In the above statement I keep all the original data and then lookup the result value based on the data value into a new variable formatted_value.&amp;nbsp; The benefit of this is that you gain a column which has the formatted value as the data, nothing hidden.&amp;nbsp; So really depends on what you want to do with the data/where its going to .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163295#M42378</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-02-11T15:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163296#M42379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em; background-color: #ffffff;"&gt;Thanks RW9,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;By "..firstly you will need to import the CSV file into a dataset";&amp;nbsp; you mean should I make csv file separate SAS dataset or combine csv columns in existing dataset?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:44:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163296#M42379</guid>
      <dc:creator>bikash</dc:creator>
      <dc:date>2015-02-11T15:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163297#M42380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just import the CSV to a new dataset:&lt;/P&gt;&lt;P&gt;data code_list;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "thecsv.csv" dlm=",";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input icd9 $ css $ csscat $;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163297#M42380</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-02-11T15:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163298#M42381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I created SAS data-set of csv file.&amp;nbsp; How do I create format library from it. I see &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;proc format in the SAS help only has way to create library based on value not by SAS data-set. How do I format with SAS data-set? Could you suggest codes too.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 16:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163298#M42381</guid>
      <dc:creator>bikash</dc:creator>
      <dc:date>2015-02-11T16:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163299#M42382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Example 8 in this paper:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/001-30.pdf" title="http://www2.sas.com/proceedings/sugi30/001-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/001-30.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 16:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163299#M42382</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-11T16:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163300#M42383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way is Hash Table .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 09:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163300#M42383</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-02-12T09:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163301#M42384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what this is but it seems to work with modification.It has used &lt;EM style="color: #000000; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt;cntlin function.&lt;/EM&gt; I found this on Agency for Health Care Research website. Still I am not able to label CCS group.Thanks to all.&lt;EM style="color: #000000; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #000000; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #000000; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12.8000001907349px;"&gt;Filename inraw "c:\tools\ccs\$DXREF 2013.csv" ;&lt;BR /&gt;/*****************************************/&lt;BR /&gt;/* Make a SAS format*/&lt;BR /&gt;/*****************************************/ data new;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile inraw dsd dlm=',' end = eof firstobs=&lt;SPAN style="text-decoration: line-through;"&gt;3&lt;/SPAN&gt; missover;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input start : $char5.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: line-through;"&gt;Oldccs : $char4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value1 : $char70.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value2 : $char70.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label : $char4.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp; Value3 : $char70.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retain hlo "&amp;nbsp;&amp;nbsp; ";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fmtname = "$ccs" ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type = "&amp;nbsp;&amp;nbsp; " ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if eof then do ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start = "&amp;nbsp;&amp;nbsp; " ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vlabel = "&amp;nbsp;&amp;nbsp; " ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hlo = "o";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end ;&lt;BR /&gt;run;&lt;BR /&gt;proc format cntlin = new ;&lt;BR /&gt;run;&lt;BR /&gt;/*****************************************/&lt;BR /&gt;/* Reassign CCS&amp;nbsp; */&lt;BR /&gt;/*****************************************/&lt;BR /&gt;data test;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set data;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ccs = put(&lt;SPAN style="text-decoration: line-through;"&gt;ecode &lt;/SPAN&gt;Diagnosis,$ccs.)&lt;BR /&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 17:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163301#M42384</guid>
      <dc:creator>bikash</dc:creator>
      <dc:date>2015-02-12T17:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163302#M42385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;bikash wrote:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Still I am not able to label CCS group.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;You'll need to provide more details than that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 20:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163302#M42385</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-12T20:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163303#M42386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;If you see attached csv file, it has 3 columns: Icd9 Code, CCS Group and CCS Description. With above syntax, I can group ICD Code in CCS group but cannot label it with CCS Description..&lt;/P&gt;&lt;P&gt;e.g. ICD code '3220',&amp;nbsp; or '3221' is formatted as&amp;nbsp; 76 (CCS Group) in proc freq result but&amp;nbsp; I wanted it as 'Meningitis' in result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163303#M42386</guid>
      <dc:creator>bikash</dc:creator>
      <dc:date>2015-02-12T21:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163304#M42387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could make more than one format from the data.&lt;/P&gt;&lt;P&gt;So one could map ICD9 -&amp;gt; CCS code&lt;/P&gt;&lt;P&gt;Another could map ICD9 -&amp;gt; CCS Description&lt;/P&gt;&lt;P&gt;Another could map ICD9 -&amp;gt; CCS code + CCS Description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; zipfile zip &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'C:\Downloads\$dxref 2015.csv.zip'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ccs ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; zipfile(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'$dxref 2015.csv'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;dsd&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;firstobs&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;truncover&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; diag_cd $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;5&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ccs_cd $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;4&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ccs_desc $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;70&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; diag_cd ccs_cd ccs_desc ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ccs_cd ne &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; cntlin ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; fmtname $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;32&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; type $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; start $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;80&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; label $&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;80&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;keep&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; fmtname type start label&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; type=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'C'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ccs ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; fmtname=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'CCS'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; start=diag_cd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; label=ccs_cd ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; fmtname=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'CCSD'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; start=diag_cd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; label=ccs_desc ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; fmtname=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'CCSB'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; start=diag_cd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; label=catx(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;' - '&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,ccs_cd,ccs_desc) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;nodupkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; fmtname start label ; &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;format&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;cntlin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=cntlin; &lt;/SPAN&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; diag_cd &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$5.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ccs=put(diag_cd,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$ccs.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ccsd=put(diag_cd,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$ccsd.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ccsb=put(diag_cd,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$ccsb.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_all_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) (=);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;01080&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;7141&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;;;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163304#M42387</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-12T21:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163305#M42388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example I have formats that map my state's county codes to:&lt;/P&gt;&lt;P&gt;The county name&lt;/P&gt;&lt;P&gt;a variety of geographical regions such as Health Districts&lt;/P&gt;&lt;P&gt;translate to a different coding scheme used by some applications&lt;/P&gt;&lt;P&gt;A multilabel format that for the applications that support multilabel formats such as Proc Tabulate and Report, geographic region and county name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to I found to learn to make CNTLIN data sets to make format is to examine a CNTLOUT data set.&lt;/P&gt;&lt;P&gt;Create a format (or multiple formats) with a few values similar to what you need. Add the option CNTLOUT= &amp;lt;some dataset name&amp;gt;;&lt;/P&gt;&lt;P&gt;When you run proc format that data set will be created with the information you need. Make a set that looks like that an use it as a CNTLIN dataset.&lt;/P&gt;&lt;P&gt;Important: Proc formats expect specific variable names for the bits it needs AND the type. Also the CNTLIN dataset must have all of the FMTNAME values together, best is to sort by FMTNAME.&lt;/P&gt;&lt;P&gt;The minimum set of variables you will need are FMTNAME, START, END (especially if a range is needed, Label (the result to display) and Type (C or N for character or numeric).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163305#M42388</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-02-12T21:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Format Variable based on description in csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163306#M42389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to every one for help. SAS Code provided by Tom solves all my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 16:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-Variable-based-on-description-in-csv-file/m-p/163306#M42389</guid>
      <dc:creator>bikash</dc:creator>
      <dc:date>2015-02-19T16:30:56Z</dc:date>
    </item>
  </channel>
</rss>

