<?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: proc format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587239#M167705</link>
    <description>&lt;P&gt;Are there error messages in the log?&lt;/P&gt;
&lt;P&gt;Is ENTITY_ID a character variable?&lt;/P&gt;
&lt;P&gt;Does PROC CONTENTS show the expected format attached to variable ENTITY_ID?&lt;/P&gt;
&lt;P&gt;What do you see in the data set? (SHOW US)&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2019 13:53:58 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-09-09T13:53:58Z</dc:date>
    <item>
      <title>proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587237#M167704</link>
      <description>&lt;P&gt;I'm trying to create a user defined&amp;nbsp;format as follows, but I'm not seing the updated Format in the dataset dis_entity_id. Am I doing something wrong? In my final dataset I want to see the texts as &lt;CODE class=" language-sas"&gt;'Schaden/Unall'&lt;/CODE&gt; if the ENTITY_ID is 5801&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
Value $ENTIT
'5801'='Schaden/Unall'
'60011'='Hestia'
'56002'='Lebn'
'60041'='Austria'
'6002'='Belgien'
'5401'='Köln'
'54009'='Segros'
'5400'='Belgen'
'test'='NULL';
run;

proc sql;
create table dis_entity_id as select distinct ENTITY_ID format=$ENTIT. from &amp;amp;_INPUT;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587237#M167704</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-09T13:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587239#M167705</link>
      <description>&lt;P&gt;Are there error messages in the log?&lt;/P&gt;
&lt;P&gt;Is ENTITY_ID a character variable?&lt;/P&gt;
&lt;P&gt;Does PROC CONTENTS show the expected format attached to variable ENTITY_ID?&lt;/P&gt;
&lt;P&gt;What do you see in the data set? (SHOW US)&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587239#M167705</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-09T13:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587241#M167707</link>
      <description>&lt;P&gt;No error Messages in the log.&lt;/P&gt;
&lt;P&gt;yes, ENTITY_ID is a character variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log says&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Format $ENTIT has been output.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Sep 2019 13:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587241#M167707</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-09T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587252#M167713</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;In my final dataset I want to see the texts as &lt;CODE class=" language-sas"&gt;'Schaden/Unall'&lt;/CODE&gt; if the ENTITY_ID is 5801&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;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And how are you "looking" at your data set dis_entity_id?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 14:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587252#M167713</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-09T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587257#M167714</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;No error Messages in the log.&lt;/P&gt;
&lt;P&gt;yes, ENTITY_ID is a character variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log says&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Format $ENTIT has been output.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please provide the answers to all the questions I asked.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 15:00:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587257#M167714</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-09T15:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587260#M167716</link>
      <description>Just opening the dataset in SAS EG after the execution of program.&lt;BR /&gt;&lt;BR /&gt;Do you feel that my code is logically correct?&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Sep 2019 15:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587260#M167716</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-09T15:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587274#M167722</link>
      <description>Your code is logically correct so either your data is not what you think it is or you have an error somewhere else. It could be as simple as you opening the input data set instead of the output data set or some other issue. What happens if you run a proc freq on the data with the format instead?</description>
      <pubDate>Mon, 09 Sep 2019 15:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format/m-p/587274#M167722</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-09T15:18:28Z</dc:date>
    </item>
  </channel>
</rss>

