Hi All,
I am running proc shewhart, everything is okay on my EG (SAS is running SAS server). Then I handed the SAS coding to SAS admin and she tried to schedule the job on SAS EG and got the following errors:
RROR: Device was not specified.
Graphics cannot be loaded by this procedure.
NOTE: The SAS System stopped processing this step because of errors.
The coding that caused the error is as follows:
PROC SHEWHART DATA = WORK.SORTTempTableSorted
LIMITS=WORK.ABC;
;
IRCHART (Var1) * Var2 /
TESTS= 1 2
TESTLABEL1='test1'
TESTLABEL2='test2'
OUTTABLE=WORK.DEF
SIGMAS=3
LIMITN=2
;
BY VAR2;
;
RUN;
Could you please let me know what may cause the error when scheduling on the server? I have the following added in the coding already:
ODS HTML CLOSE;
ODS LISTING CLOSE;
Thanks,
Jade
@Jade_SAS wrote:
Thank you ballardw!
Just curious and try to clear my mind, when I ran the SAS code, it’s on the SAS server. Then when the admin schedule the job, it’s still on the SAS server. How come the admin session may not configure the graphics device? Thanks again!
Jade
Maybe you need to talk with your SAS admin about the setup. It may be that whoever is responsible for the configuration of the server is not aware that some settings may need to be made available for scheduled jobs. I think the scheduler might use a slightly different configuration similar to one for batch jobs and when set up there wasn't a known requirement to enable the specific graphics option(s).
Perhaps prior to the shown procedure?
ODS Graphics on;
The text of that error makes me think the procedure is attempting to use the device based graphics not the SGrapics. You admin sessions may not configure either SG or device based graphics.
If the ODS graphics doesn't work then perhaps you need a GOPTIONS statement with an appropriate DEVICE= option.
@Jade_SAS wrote:
Thank you ballardw!
Just curious and try to clear my mind, when I ran the SAS code, it’s on the SAS server. Then when the admin schedule the job, it’s still on the SAS server. How come the admin session may not configure the graphics device? Thanks again!
Jade
Maybe you need to talk with your SAS admin about the setup. It may be that whoever is responsible for the configuration of the server is not aware that some settings may need to be made available for scheduled jobs. I think the scheduler might use a slightly different configuration similar to one for batch jobs and when set up there wasn't a known requirement to enable the specific graphics option(s).
I see, thank you very much!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.