Data visualization with SAS programming

ERROR: Unable to process the graph.

Reply
Contributor
Posts: 57

ERROR: Unable to process the graph.

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.

Grand Advisor
Posts: 10,210

Re: ERROR: Unable to process the graph.

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.

Contributor
Posts: 57

Re: ERROR: Unable to process the graph.

(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;

Ask a Question
Discussion stats
  • 2 replies
  • 526 views
  • 0 likes
  • 2 in conversation