<?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 PROC FORMAT? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484275#M125719</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to create user define format can you pls check below 2 code and let me know where i am doing mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc format;&lt;BR /&gt;value typefmt&lt;BR /&gt;'PA'='Passenger'&lt;BR /&gt;'CA'='Car';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Proc print Data =S.Car;&lt;BR /&gt;Format Vehicle_type $typefmt.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc format;&lt;BR /&gt;Value Newgrp low-175='&amp;lt;175'&lt;BR /&gt;175-&amp;lt;200='175-200'&lt;BR /&gt;200-High= '&amp;gt;200';&lt;BR /&gt;run;&lt;BR /&gt;proc Freq data =S.Car;&lt;BR /&gt;Format Length Newgrp.;&lt;BR /&gt;Table Length;&lt;BR /&gt;run;&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Aug 2018 07:12:55 GMT</pubDate>
    <dc:creator>piplani81</dc:creator>
    <dc:date>2018-08-06T07:12:55Z</dc:date>
    <item>
      <title>PROC FORMAT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484275#M125719</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to create user define format can you pls check below 2 code and let me know where i am doing mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc format;&lt;BR /&gt;value typefmt&lt;BR /&gt;'PA'='Passenger'&lt;BR /&gt;'CA'='Car';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Proc print Data =S.Car;&lt;BR /&gt;Format Vehicle_type $typefmt.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc format;&lt;BR /&gt;Value Newgrp low-175='&amp;lt;175'&lt;BR /&gt;175-&amp;lt;200='175-200'&lt;BR /&gt;200-High= '&amp;gt;200';&lt;BR /&gt;run;&lt;BR /&gt;proc Freq data =S.Car;&lt;BR /&gt;Format Length Newgrp.;&lt;BR /&gt;Table Length;&lt;BR /&gt;run;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 07:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484275#M125719</guid>
      <dc:creator>piplani81</dc:creator>
      <dc:date>2018-08-06T07:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484276#M125720</link>
      <description>If you want to create a char-format, the name must begin with $.&lt;BR /&gt;I can't say anything about the second problem, because you failed to explain what the problem is.</description>
      <pubDate>Mon, 06 Aug 2018 07:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484276#M125720</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2018-08-06T07:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484279#M125723</link>
      <description>&lt;P&gt;Please formulate the question which exact descriptions of hat the issue is, what logs say, test data/required output etc.&amp;nbsp; In the first instance typefmt is missing a $, in the second?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000063536.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000063536.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 07:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484279#M125723</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-06T07:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484285#M125725</link>
      <description>&lt;P&gt;I have a car sales data set in which one variable is&amp;nbsp;Vehicle_type ( Passenger and Car) i would like to show&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'PA'='Passenger'&lt;BR /&gt;'CA'='Car'&lt;/P&gt;&lt;P&gt;but after run the following code neither i am getting any error nor format created. Pls help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc format;&lt;BR /&gt;value $typefmt&lt;BR /&gt;'PA'='Passenger'&lt;BR /&gt;'CA'='Car';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Proc print Data =S.Car;&lt;BR /&gt;Format Vehicle_type $typefmt.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 07:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484285#M125725</guid>
      <dc:creator>piplani81</dc:creator>
      <dc:date>2018-08-06T07:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484286#M125726</link>
      <description>&lt;P&gt;When you have a problem, ALWAYS post the log from your code. Use the {i} button for posting logs.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 07:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484286#M125726</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-06T07:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484287#M125727</link>
      <description>&lt;P&gt;Works for me :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname S "c:\temp";

data S.car;
input Vehicle_type $;
cards;
PA
CA
;
run;

Proc format;
value $typefmt
'PA'='Passenger'
'CA'='Car';
run;

Proc print Data =S.Car;
Format Vehicle_type $typefmt.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What does the log indicate ?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 07:58:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484287#M125727</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-08-06T07:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484289#M125728</link>
      <description>&lt;P&gt;What error, post the log part.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 07:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484289#M125728</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-06T07:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484405#M125764</link>
      <description>&lt;PRE&gt;Proc format;
Value Newgrp 
low-175='&amp;lt;175'
175-&amp;lt;200='175-200'
200-High= '&amp;gt;200';
run;&lt;/PRE&gt;
&lt;P&gt;has an issue with 175 being in two groups (and not a multilabel format). From your label text I suspect that you might actually want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc format;
Value Newgrp 
low -&amp;lt; 175='&amp;lt;175'
175 -&amp;lt; 200='175-200'
200 -   High= '&amp;gt;200';
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2018 15:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-FORMAT/m-p/484405#M125764</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-06T15:06:28Z</dc:date>
    </item>
  </channel>
</rss>

