A fileref error occurs when you submit EMAIL filename code from SAS® Enterprise Guide® to SAS® Viya®


When you submit SAS code that uses the EMAIL filename engine from SAS® Enterprise Guide® 8.4 or SAS® Enterprise Guide® 8.6 to SAS Viya, SAS Enterprise Guide might fail to display results and prints the following error to the SAS log:  

Error: An error occurred while checking if the fileref is defined in the compute session.

This issue occurs when you define the EMAIL fileref but not explicitly clear it at the end of the program.

Error: An error occurred while checking if the fileref is defined in the compute session.

Workaround

To circumvent this issue, explicitly clear the EMAIL fileref at the end of the program:

filename eml clear;

Screenshot of filename eml clear;

Resolution

The issue is fixed in SAS Enterprise Guide 8.6 Hot Fix 3.