Data visualization with SAS programming

ODS Graphics Designer generating GTL code that does not run

Reply
Occasional Contributor
Posts: 19

ODS Graphics Designer generating GTL code that does not run

Hi all,

We have came across code that was generated through ODS Graphics Designer that is not implemented in GTL. The code below was generated but apparently boxplot is not a plot that is implemented in combination with the datalattice layout (although boxplotparm is). Any help is welcome since we want to implement ODS graphics designer as part of our graphics creation process.

Thanks,
Alain

proc template;
define statgraph sgdesign;
dynamic _panelnumber_;
begingraph;
entrytitle _id='title' halign=center 'Type in your title...' /;
entryfootnote _id='footnote' halign=left 'Type in your footnote...' /;
layout datalattice _id='datalattice' columnvar=CHOL_STATUS rowvar=SMOKE /
panelnumber=_panelnumber_ cellheightmin=1 cellwidthmin=1
columndatarange=unionall columngutter=3 columns=4 headerlabeldisplay=value
rowdatarange=unionall rowgutter=3 rows=2;
layout prototype _id='prototype' / ;
boxplot _id='box' x=SEX y=HEIGHT / name='box';
endlayout;
endlayout;
endgraph;
end;
run;
N/A
Posts: 0

Re: ODS Graphics Designer generating GTL code that does not run

Some GTL code generated by the Designer can not be run with PROC SGRENDER. For example, "computed" plots such as boxplot and histogram are not yet supported in GTL datalattice/datapanel layout. In the production release of the Designer, you will see some comments in the code indicating that it can not be run with proc sgrender. However, you can always run PROC SGDESIGN in batch mode for any output generated by the Designer.

Thanks,
Lingxiao
Occasional Contributor
Posts: 19

Re: ODS Graphics Designer generating GTL code that does not run

Thanks for your quick reply. Can you give me an indication as to when both products will be in sync in terms of functionality?
Thanks again
Alain
SAS Employee
Posts: 11

Re: ODS Graphics Designer generating GTL code that does not run

Lingxiao mentions that in the production release of the Designer, you will see some comments in the code indicating that it can not be run with proc sgrender.

Here is an example of what to look for to determine what can't be run in proc sgrender:

/* NOTE: Following statement(s) will not work if submitted in GTL */

and then the offending statements will appear in red text.

or

/* The graph contains paneled computed plot(s). This is not supported by PROC SGRENDER. You need to run PROC SGDESIGN to generate the graph. */
N/A
Posts: 0

Re: ODS Graphics Designer generating GTL code that does not run

We plan to make the GTL template generated by the SGDesigner fully compliant with proc sgrender. We will try to do it in the next major release.
Post a Question
Discussion Stats
  • 4 replies
  • 150 views
  • 0 likes
  • 3 in conversation