Here is the code I submitted to the server to setup folders and libraries:
options source source2 msglevel=I mcompilenote=all mautosource mrecall sasautos=(SASAUTOS "/&server./projects/&proj./Programs/Macros");
options formchar="|----|+|---+=|-/\<>*" symbolgen mprint mlogic;
ods listing gpath="/&server./projects/&proj./Output/";
%setup(sample=&sample., programname=outcomes, saveLog=n);
When I submit the code above the Enhanced Editor closes and I get the ERROR Message below:
ERROR: Invalid or unspecified remote session ID. Set OPTIONS REMOTE=session_id.
ERROR: An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
The SAS task name is [Enhanced Editor]
ERROR: Read Access Violation Enhanced Editor
Exception occurred at (689A355D)
Address Frame (DBGHELP API Version 4.0 rev 5)
00007FFF689A355D 00000026B40FC510 sasxed:tkvercn1+0x1251D
00007FFF49BF379B 00000026B40FC518 saszrlnk:tkvercn1+0x1275B
00007FFF49BE253C 00000026B40FD9C0 saszrlnk:tkvercn1+0x14FC
00007FFF64661F59 00000026B40FD9C8 sasyuc:tkvercn1+0xF19
00007FFF826D3E35 00000026B40FE908 sasxfs:tkvercn1+0x2DF5
00007FFF826D2E3E 00000026B40FEDE0 sasxfs:tkvercn1+0x1DFE
00007FFF826D5412 00000026B40FEFA0 sasxfs:tkvercn1+0x43D2
00007FFF6893323C 00000026B40FEFA8 sasvedit:tkvercn1+0x21FC
00007FFF68931F1F 00000026B40FF9F0 sasvedit:tkvercn1+0xEDF
00007FFF694AF5A8 00000026B40FF9F8 sashost:Main+0x15268
00007FFF694B59CC 00000026B40FFD20 sashost:Main+0x1B68C
00007FFFCB267034 00000026B40FFD28 KERNEL32:BaseThreadInitThunk+0x14
00007FFFCCAC2651 00000026B40FFD58 ntdll:RtlUserThreadStart+0x21
ERROR: Generic critical error.
This happens in the macro, the code of which we don't know. So we need to see that code.
But every time that SAS tells you to call technical support, it's a good idea to do so, as the software has encountered an unexpected condition it can't properly deal with, and this can point to a SAS bug.
I did contact SAS but I still haven't had a solution. Since the program closes, the only log I get is what I shared (in red font color), so no other log is available at all. And this program runs un SAS/STAT 14.2, but just not on this upgraded SAS/STAT 15.2. I just did an upgrade on one desktop, but now I have to stop upgrading other computers until I know what is causing this problem and how to solve it.
I also have an inkling that this is not the only, but just the last ERROR of several. The ERROR points to a SUBMIT statement that happens when there is no SAS/CONNECT session established, so you likely have another ERROR before that when the program tries to establish the CONNECT session with a SIGNON statement.
Looks like the called macro is expecting a remote session ID when one is not defined. This implies you should be signing on to a remote server from your local SAS session and that the macro includes remote submits. Is this what you expect?
Yes, I had signed into SAS for remote submission of code. This only started happening after I upgraded to SAS/STAT 15.2 from 14.2. 14.2 never had this problem. Would multiple signons on the laptop and desktop cause this may be, as in may be I am not allowed to have multiple signons? If I run the exact same code on the 14.2 version I experience no problem at all, so I am thinking it might be the Enhanced Editor in 15.2 is corrupted, how can I confirm this and how can I solve the problem?
This doesn't look like a STAT issue, the messages point to a CONNECT problem while trying to establish a session.
What does SAS TS say?
OK, I see, nothing yet. But your upgrade of STAT was part of a larger upgrade of the SAS system, so you also have changes in other modules like SAS/CONNECT.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.
Find more tutorials on the SAS Users YouTube channel.