08-12-2015 07:03 AM
I'm trying to debug a program in SAS Studio, but when I use the DEBUG option I get the following error :
ERROR: Unable to initialize the DATA STEP Debugger environment.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.K may be incomplete. When this step was stopped there were 0 observations and 12 variables.
WARNING: Data set WORK.K was not replaced because this step was stopped.
My program is pretty simple, just wanted to use the DEBUG option that we use in SAS Windowing Environment :
data k / debug;
Please let me know if this feature is not available in SAS Studio for academics ?
08-12-2015 02:01 PM
I believe that the DEBUG option is available only when you are running SAS locally and is not available when you run code using SAS Studio or SAS Enterprise Guide. It looks like this question came up a few years ago in another context as well:
If I learn anything more about this from our development team, we'll post back here for you.
08-13-2015 02:44 AM
The data step debugger is interactive and requires the display manager to manage its windows. Since a workspace server does not have a terminal and therefore also has no display manager, you can't use the data step debugger.
Outside of the limited environment of SAS UE, you would open an X windows session to your UNIX server and start SAS in display manager mode there to use the data step debugger.
You will need to use other methods of debugging your data step (put statements to reveal values etc)