<?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: Delete/remove a custom format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721862#M223785</link>
    <description>&lt;P&gt;I think the curly quotes in the code are the root cause of all the issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/323348"&gt;@contactnishan&lt;/a&gt;: Replace all curly quotes in your code by straight quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n11st7possem5en1vo07v2nlxg0c.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;PROC CATALOG&lt;/A&gt; to delete formats:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc catalog c=formats;
delete city bigcity / et=format;   /* numeric formats */
delete zbigcity     / et=formatc;  /* character formats */
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;FONT size="2"&gt;: Congrats on reaching the honorable&amp;nbsp;Diamond&amp;nbsp;rank (even skipping &lt;A href="https://communities.sas.com/t5/Community-Memo/SAS-Support-Communities-rocks-new-ranks/ba-p/652332" target="_blank" rel="noopener"&gt;three ranks&lt;/A&gt; in between)! Well deserved.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 18:50:33 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-02-25T18:50:33Z</dc:date>
    <item>
      <title>Delete/remove a custom format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721827#M223767</link>
      <description>&lt;PRE&gt;proc format;&lt;BR /&gt;value city&lt;BR /&gt;0 = “Not Identifiable”&lt;BR /&gt;1 = “Big City”&lt;BR /&gt;2 = “Small City"&lt;BR /&gt;3 = “Metropolitan, Outside City”&lt;BR /&gt;4 = “City Status Unknown”&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;DIV class="sasError"&gt;The comma , in the value 3 “Metropolitan, Outside City” causes the following error.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;Syntax error, expecting one of the following: a quoted string, a numeric constant, a datetime constant,&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;a missing value, ;, LOW, OTHER.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;STRONG&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Can't we put a comma there?&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;one more thing...&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;how do we remove a format that we created?&lt;/DIV&gt;&lt;DIV class="sasError"&gt;for example I created a format named city. now I want to remove that format. How do I remove this particular format?&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;thank you in advance. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Feb 2021 12:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721827#M223767</guid>
      <dc:creator>contactnishan</dc:creator>
      <dc:date>2021-02-25T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Delete/remove a custom format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721834#M223770</link>
      <description>&lt;P&gt;Commas do not cause the error you are seeing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value $myfmt "K"='Other, Misc';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When you get an error in the log, show us the LOG and not the code and error detached from the code. Show us the log for these steps with nothing chopped out, and in the order it appears in the LOG. Copy the relevant portions of the log as text and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon, this causes the formatting of the log to be preserved. I no longer try to decipher unformatted logs.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 12:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721834#M223770</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-25T12:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete/remove a custom format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721837#M223773</link>
      <description>1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 proc format;&lt;BR /&gt;74 value bigcity&lt;BR /&gt;75 0 = “Not Identifiable”&lt;BR /&gt;76 1 = “Not in Metro Area”&lt;BR /&gt;77 2 = “Metro Inside City”&lt;BR /&gt;78 3 = “Metro Outside City”&lt;BR /&gt;79 4 = “Metro, City Status Unknown”&lt;BR /&gt;_&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant, a datetime constant,&lt;BR /&gt;a missing value, ;, LOW, OTHER.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;80 ;&lt;BR /&gt;NOTE: The previous statement has been deleted.&lt;BR /&gt;81 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;82&lt;BR /&gt;83 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;95</description>
      <pubDate>Thu, 25 Feb 2021 12:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721837#M223773</guid>
      <dc:creator>contactnishan</dc:creator>
      <dc:date>2021-02-25T12:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delete/remove a custom format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721843#M223775</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Copy the relevant portions of the log as text and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon, this causes the formatting of the log to be preserved. I no longer try to decipher unformatted logs.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 13:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721843#M223775</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-25T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete/remove a custom format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721848#M223777</link>
      <description>&lt;PRE&gt; proc format;
 value $zbigcity
0 = “Not Identifiable”
1 = “Not in Metro Area”
2 = “Metro Inside City”
3 = “Metro Outside City”
4 = “Metro, City Status Unknown”
                        _
                        22
                        76
 ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant, a datetime constant, 
               a missing value, ;, LOW, OTHER.  
 ERROR 76-322: Syntax error, statement will be ignored.
 80         ;
 NOTE: The previous statement has been deleted.
 81         run;
 
 NOTE: PROCEDURE FORMAT used (Total process time):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 NOTE: The SAS System stopped processing this step because of errors.
 82         
 83         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 95         &lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Feb 2021 13:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721848#M223777</guid>
      <dc:creator>contactnishan</dc:creator>
      <dc:date>2021-02-25T13:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete/remove a custom format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721855#M223781</link>
      <description>&lt;P&gt;Hi, its hard to identify the actual problem here, as it seems as if somehow the log you are showing has been run through a word processor like Microsoft Word (or even PowerPoint), and so what is shown is not the actual log, but a translated version of it. I can tell because you show the curly quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like you to copy the log directly from the SAS window, and then paste it into the &amp;lt;/&amp;gt; window here, with no intermediate steps; and then the curly quotes will turn into non-curly quotes, and we will see the log exactly as SAS saw it.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 13:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721855#M223781</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-02-25T13:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete/remove a custom format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721857#M223782</link>
      <description>Yes, it was copy pasted code from a pdf document. When I write all codes from the scratch, there is no error. So the problem is solved.&lt;BR /&gt;Thank you very much.&lt;BR /&gt;Is it possible for you to help me with deleting a format that I previously assigned.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Feb 2021 13:42:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721857#M223782</guid>
      <dc:creator>contactnishan</dc:creator>
      <dc:date>2021-02-25T13:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete/remove a custom format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721862#M223785</link>
      <description>&lt;P&gt;I think the curly quotes in the code are the root cause of all the issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/323348"&gt;@contactnishan&lt;/a&gt;: Replace all curly quotes in your code by straight quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n11st7possem5en1vo07v2nlxg0c.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;PROC CATALOG&lt;/A&gt; to delete formats:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc catalog c=formats;
delete city bigcity / et=format;   /* numeric formats */
delete zbigcity     / et=formatc;  /* character formats */
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;FONT size="2"&gt;: Congrats on reaching the honorable&amp;nbsp;Diamond&amp;nbsp;rank (even skipping &lt;A href="https://communities.sas.com/t5/Community-Memo/SAS-Support-Communities-rocks-new-ranks/ba-p/652332" target="_blank" rel="noopener"&gt;three ranks&lt;/A&gt; in between)! Well deserved.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 18:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721862#M223785</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-02-25T18:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Delete/remove a custom format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721868#M223787</link>
      <description>&lt;P&gt;It helped. The curly quotes were the problems (copied from a pdf text).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 14:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Delete-remove-a-custom-format/m-p/721868#M223787</guid>
      <dc:creator>contactnishan</dc:creator>
      <dc:date>2021-02-25T14:00:49Z</dc:date>
    </item>
  </channel>
</rss>

