BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
KimLeBouton
Quartz | Level 8

I have a local SAS for Windows 9.4M7 license. It was a classic/traditional install, not a planned deployment. I oversee the install instructions for our environment.

 

I was preparing a 10 minute session to show non-SAS users how SAS users interact with their environment: batch, Display Manager, SAS Studio (3.81) and Enterprise Guide (8.3). I used an example from SAS/ETS. Click here for code. 

 

Using default (html), Display Manager and SAS Studio produced the Fit Diagnostic Plots at the end of each PROC AUTOREG. EG only included the reports with no plots. I ran the "Check for Updates" for EG and my install stated all updates applied. The SAS log for EG doesn't note any issues.

For Community and Technical Support, I tried searching "Enterprise Guide" "PROC AUTOREG". I didn't receive any hits.

I haven't opened a ticket yet.

TIA,
Kim

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

Try turning ODS GRAPHICS on when running the example. It worked for me.

ods graphics on;

proc sgplot data=gnp noautolegend;
   scatter x=date y=y;
   xaxis grid values=('01jan1901'd '01jan1911'd '01jan1921'd '01jan1931'd
             '01jan1941'd '01jan1951'd '01jan1961'd '01jan1971'd
             '01jan1981'd '01jan1991'd);
run;

proc autoreg data=gnp;
   model y = t / nlag=2 method=ml;
run;

proc autoreg data = gnp;
   model y = / stationarity =(adf =3);
run;

proc autoreg data=gnp;
   model dy = / nlag=1 method=ml;
run;

View solution in original post

4 REPLIES 4
ballardw
Super User

Can you show us the LOG from the EG code that didn't show the plots? Include the code and all notes. Sometimes we'll see something that is just enough different from expected to provide a hint.

KimLeBouton
Quartz | Level 8

My bad for not including the log with my first post. The solution for EG is adding "ods graphic on;"

 

Here's the original log. 

 

1 The SAS System 09:48 Friday, September 1, 2023

1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Program';
4 %LET _CLIENTPROCESSFLOWNAME='Standalone Not In Project';
5 %LET _CLIENTPROJECTPATH='';
6 %LET _CLIENTPROJECTPATHHOST='';
7 %LET _CLIENTPROJECTNAME='';
8 %LET _SASPROGRAMFILE='';
9 %LET _SASPROGRAMFILEHOST='';
10
11 ODS _ALL_ CLOSE;
12 OPTIONS DEV=SVG;
13 GOPTIONS XPIXELS=0 YPIXELS=0;
14 %macro HTML5AccessibleGraphSupported;
15 %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) >= 0 %then ACCESSIBLE_GRAPH;
16 %mend;
17 FILENAME EGHTML TEMP;
18 ODS HTML5(ID=EGHTML) FILE=EGHTML
19 OPTIONS(BITMAP_MODE='INLINE')
20 %HTML5AccessibleGraphSupported
21 ENCODING='utf-8'
22 STYLE=HTMLBlue
23 NOGTITLE
24 NOGFOOTNOTE
25 GPATH=&sasworklocation
26 ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
27
28 /*--------------------------------------------------------------
29
30 SAS Sample Library
31
32 Name: autex01.sas
33 Description: Example program from SAS/ETS User's Guide,
34 The AUTOREG Procedure
35 Title: Analysis of Real Output Series
36 Product: SAS/ETS Software
37 Keys: autoregression
38 PROC: AUTOREG
39 Notes:
40
41 --------------------------------------------------------------*/
42
43 title 'Analysis of Real GNP';
44 data gnp;
45 date = intnx( 'year', '01jan1901'd, _n_-1 );
46 format date year4.;
47 input x @@;
48 y = log(x);
49 dy = dif(y);
50 t = _n_;
51 label y = 'Real GNP'
52 dy = 'First Difference of Y'
53 t = 'Time Trend';
54 datalines;

NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.GNP has 83 observations and 5 variables.
2 The SAS System 09:48 Friday, September 1, 2023

NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.01 seconds

66 ;
67 * ... datalines omitted ... *;
68
69
70 proc sgplot data=gnp noautolegend;
71 scatter x=date y=y;
72 xaxis grid values=('01jan1901'd '01jan1911'd '01jan1921'd '01jan1931'd
73 '01jan1941'd '01jan1951'd '01jan1961'd '01jan1971'd
74 '01jan1981'd '01jan1991'd);
75 run;

NOTE: PROCEDURE SGPLOT used (Total process time):
real time 5.02 seconds
cpu time 0.29 seconds

NOTE: This SAS session is using a registry in WORK. All changes will be lost at the end of this session.
NOTE: There were 83 observations read from the data set WORK.GNP.

76
77 proc autoreg data=gnp;
78 model y = t / nlag=2 method=ml;
79 run;

NOTE: PROCEDURE AUTOREG used (Total process time):
real time 0.19 seconds
cpu time 0.14 seconds

80
81 proc autoreg data = gnp;
82 model y = / stationarity =(adf =3);
83 run;

NOTE: PROCEDURE AUTOREG used (Total process time):
real time 0.06 seconds
cpu time 0.03 seconds

84
85 proc autoreg data=gnp;
86 model dy = / nlag=1 method=ml;
87 run;

NOTE: PROCEDURE AUTOREG used (Total process time):
real time 0.13 seconds
cpu time 0.09 seconds

88
89 %LET _CLIENTTASKLABEL=;
90 %LET _CLIENTPROCESSFLOWNAME=;
91 %LET _CLIENTPROJECTPATH=;
92 %LET _CLIENTPROJECTPATHHOST=;
3 The SAS System 09:48 Friday, September 1, 2023

93 %LET _CLIENTPROJECTNAME=;
94 %LET _SASPROGRAMFILE=;
95 %LET _SASPROGRAMFILEHOST=;
96
97 ;*';*";*/;quit;run;
98 ODS _ALL_ CLOSE;
99
100
101 QUIT; RUN;
102

SASKiwi
PROC Star

Try turning ODS GRAPHICS on when running the example. It worked for me.

ods graphics on;

proc sgplot data=gnp noautolegend;
   scatter x=date y=y;
   xaxis grid values=('01jan1901'd '01jan1911'd '01jan1921'd '01jan1931'd
             '01jan1941'd '01jan1951'd '01jan1961'd '01jan1971'd
             '01jan1981'd '01jan1991'd);
run;

proc autoreg data=gnp;
   model y = t / nlag=2 method=ml;
run;

proc autoreg data = gnp;
   model y = / stationarity =(adf =3);
run;

proc autoreg data=gnp;
   model dy = / nlag=1 method=ml;
run;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 360 views
  • 2 likes
  • 3 in conversation