The PSMATCH procedure terminates abnormally when you specify a character treatment variable with a length greater than 256


If you specify a character treatment variable in the PSMODEL or PSDATA statement and the length of the variable is greater than 256 bytes, PROC PSMATCH terminates abnormally. The SAS® system exits or issues messages such as the following in the log:

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

The SAS task name is
Segmentation Violation

Traceback of the Exception:

In the SAS® Viya® platform, the following pop-up message occurs:

A problem has been detected with the SAS session. Would you like to reset the current session?

Workaround

You can avoid the problem by specifying a length of 256 or shorter for the treatment variable.