<?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 Syntax error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Syntax-error/m-p/746103#M234018</link>
    <description>&lt;P&gt;I am trying to add formats to existing variables and I keep getting this error. Can anyone let me know why this is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,&lt;BR /&gt;a datetime constant, a missing value, ;, (, LOW, OTHER.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Jun 2021 20:09:08 GMT</pubDate>
    <dc:creator>adent</dc:creator>
    <dc:date>2021-06-06T20:09:08Z</dc:date>
    <item>
      <title>Proc Format Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Syntax-error/m-p/746103#M234018</link>
      <description>&lt;P&gt;I am trying to add formats to existing variables and I keep getting this error. Can anyone let me know why this is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,&lt;BR /&gt;a datetime constant, a missing value, ;, (, LOW, OTHER.&lt;BR /&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 20:09:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Syntax-error/m-p/746103#M234018</guid>
      <dc:creator>adent</dc:creator>
      <dc:date>2021-06-06T20:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Syntax-error/m-p/746105#M234020</link>
      <description>&lt;P&gt;SAS does a good job of pointing you at the problem.&lt;/P&gt;
&lt;PRE&gt;1     proc format library= work.User_Formatsexam;
2
3     value Trial Type
                  ----
                  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.
4     S='Single'
5     M= 'Mixed'
6     P= 'Parallel';
NOTE: The previous statement has been deleted.
7
8     run;
&lt;/PRE&gt;
&lt;P&gt;Pick a single name for the format.&lt;/P&gt;
&lt;P&gt;Are you trying to define a format named TRIAL or one named TYPE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you fix that you also need to add a $ to the front of the name to let PROC FORMAT know that you want to create CHARACTER format and not a NUMERIC format.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 19:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Format-Syntax-error/m-p/746105#M234020</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-06T19:13:39Z</dc:date>
    </item>
  </channel>
</rss>

