Similar Posts

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.


  1. 32 proc datasets lib=work memtype=data;
    33 ! modify ex;
    34 attrib a label=’ ‘;
    35 attrib a format=”;
    ERROR 22-322: Syntax error, expecting one of the following: a name, a format name, ;, FORMAT, INFORMAT, LABEL, LENGTH, _ALL_,
    ERROR 200-322: The symbol is not recognized and will be ignored.

    1. Looking at the error, it seems there is only one quote in the

      attrib a format=”

      The correct syntax is

      attrib a format="";

      When you copy any code, it is always good to format the code, so you can see the statements and any syntax error like this. To indent the code in SAS EG select all the code and press Ctrl +i

  2. Hi,
    I copied the code given and executed the same. It throws above error.
    can we have both run; and quit; in proc dataset ?