"Expecting a (" and "Syntax error" received when using the SGPLOT or SGPANEL procedure


The following error messages might be received when creating a graph using the SGPLOT or SGPANEL procedure:

ERROR 79-322: Expecting a (. ERROR 76-322: Syntax error, statement will be ignored.


The problem is most likely to occur when a variable in the data set is named EVAL. The Graph Template Language (GTL) code used by the SGPLOT and SGPANEL procedures to create the graph accepts the EVAL function to allow expressions to be used. As a result, you cannot use EVAL as a variable name.

To circumvent the problem, use the RENAME data set option to rename the variable.