BookmarkSubscribeRSS Feed
stan
Quartz | Level 8

Dear SAS Users:

I have absolutely no idea on the following Log notes:

...

Output Added:

-------------

Name:       SGRender

Label:      The SGRender Procedure

Template:   myTemplate

Path:       Sgrender.SGRender

-------------

NOTE: PROCEDURE SGRENDER used (Total process time):

      real time           0.81 seconds

      cpu time            0.23 seconds

ERROR: Requested function is not supported.

ERROR: Unable to process the graph.

NOTE: There were 70 observations read from the data set WORK.myDataSet.

NOTE: ODS PDF printed 5 pages to G:\....pdf

In my code I use PROC GLIMMIX and its graphs are successfully printed in my PDF output.

Then I create a template for another graph to print my data.

And only what I have is the horizontal grid lines and no complete graph.

At the same time when I explicitly run the corresponding piece of my code

I can easily see my graph of interest the "Results Viewer window".

To what function may concern?

I found the "Problem Note 13588" but possibly it is not the case here

(swapping symbols doesn't help, no "RS=NONE" in my code).

Any help is very welcome.

2 REPLIES 2
ballardw
Super User

Since you mention you created a template the most likely cause of this type of message is a syntax error that may not be evident until running the result. Typically I would look for a misspelled keyword or missing ";" or unclosed "(" such that some other text, possibly a variable name, is in the position where the template expects to encounter a different instruction.

If you post the code for the template we may be able to point to specific examples.

stan
Quartz | Level 8

(I updated my question.)

ballardw, thank you for your reply.

Usually, yes I forget them... .

Probably here it is the fact, but I can't see the missing items...

Here is my code:

PROC TEMPLATE;

    DEFINE STATGRAPH myTemplate;

        BEGINGRAPH / BORDER = FALSE;

            ENTRYTITLE "...&lstname" /

                TEXTATTRS = (SIZE = 9 pt STYLE = ITALIC WEIGHT = NORMAL FAMILY = "Times New Roman");

            LEGENDITEM

                TYPE = MARKER

                NAME = "mean" /

                    LABEL = "Mean arithmetic"

                    MARKERATTRS = (SYMBOL = square COLOR = GRAY);

            LEGENDITEM

                TYPE = LINE

                NAME = "median" /

                    LABEL = "Median"

                    LINEATTRS = (COLOR = GRAY);

            LEGENDITEM

                TYPE = LINE

                NAME = "prfl" /

                    LABEL = "prfl"

                    LINEATTRS = (COLOR = BLACK);

            LAYOUT OVERLAY /

                YAXISOPTS = (

                    GRIDDISPLAY = ON

                    DISPLAY = (TICKS TICKVALUES)

                    LINEAROPTS = (

                        VIEWMIN = 0

                        VIEWMAX = 30

                        THRESHOLDMAX = 1 )

                    OFFSETMIN = 0

                    OFFSETMAX = 0

                    LABEL = "myLabel")

                XAXISOPTS = (

                    DISPLAY = (TICKS TICKVALUES)

                    LINEAROPTS = (

                        VIEWMIN = -1

                        VIEWMAX = 4)

                TICKVALUEATTRS = (FAMILY = "Times New Roman" STYLE = ITALIC WEIGHT = BOLD SIZE = 8 pt));

                BOXPLOT

                    X = myFactors

                    Y = myResponse /

                        CAPSHAPE = SERIF

                        DISPLAY = (FILL MEAN MEDIAN)

                        FILLATTRS = (COLOR = Lavender)

                        EXTREME = TRUE

                        OUTLINEATTRS = (THICKNESS = 0)

                        WHISKERATTRS = (THICKNESS = 0)

                        MEANATTRS = (SYMBOL = square COLOR = GRAY SIZE = 9)

                        MEDIANATTRS = (COLOR = GRAY THICKNESS = 1)

                        NAME = "iqr" LEGENDLABEL = "IQR";

                SERIESPLOT

                    X = Condition

                    Y = VALUEE /

                        GROUP = ExpID

                        LINEATTRS = (PATTERN = SOLID COLOR = BLACK);

                    DISCRETELEGEND "mean" "median" /

                        TYPE = ALL

                        LOCATION = OUTSIDE HALIGN = LEFT VALIGN = BOTTOM

                        BORDER = FALSE VALUEATTRS = (COLOR = BLACK);

                    DISCRETELEGEND "iqr" "prfl" /

                        TYPE = ALL

                        LOCATION = OUTSIDE HALIGN = RIGHT VALIGN = BOTTOM

                        BORDER = FALSE VALUEATTRS = (COLOR = BLACK);

            ENDLAYOUT;

        ENDGRAPH;

    END;

RUN;

PROC SGRENDER TEMPLATE = 'myTemplate' DATA = myData;

RUN;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 1904 views
  • 0 likes
  • 2 in conversation