ATTRIB and LENGTH statements in PROC DS2 code generate a "Segmentation Violation" error


The DS2 language does not support the DATA step statements ATTRIB, FORMAT, INFORMAT, LABEL, LENGTH, and others. Variable attributes should be defined with the DECLARE statement and HAVING clause.

Error messages like the following are generated when ATTRIB or LENGTH statements are specified within PROC DS2 code:

ERROR: An exception has been encountered.
Please contact technical support and provide them with the following traceback information:

The SAS task name is [DS2 (2) ]
Segmentation Violation

Including FORMAT, INFORMAT, or LABEL statements generate syntax errors instead. These keywords are used with the HAVING clause in a DECLARE statement.

This issue is fixed in Rev. 940_18w30.