• Print  |
  • Feedback  |

TEMPLATE Procedure: Declaration Statements (Experimental)

Exploring the Declaration Statements in an ODS Statistical Graph Definition

Like an ODS table, style, or tagset definition, the ODS statistical graph definition is specified within the PROC TEMPLATE statements. The ODS statistical graph definition begins with a DEFINE STATGRAPH statement and ends with an END statement. The declaration statements must be nested within a DEFINE STATGRAPH block. When creating an ODS statistical graph definition, the standard PROC TEMPLATE declaration statements (DYNAMIC, MVAR, NMVAR, and NOTES) are used in the same way as they are when defining an ODS table definition. The following example shows the structure of an ODS statistical graph definition:

proc template;
   define statgraph name-of-graph-definition;
      notes "template-documentation";
      dynamic variables;
      mvar variables;
      nmvar variables;
         layout overlay;
            scatterplot x=column y=column;
            lineparm slope=number yintercept=number;
            entrytitle="Your Title";
         endlayout;
   end;
run;


Previous Page | Next Page | Top of Page