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.
To circumvent this issue, explicitly clear the EMAIL fileref at the end of the program:
filename eml clear;
The issue is fixed in SAS Enterprise Guide 8.6 Hot Fix 3.