Steps for Creating a Graph Using GTL

This chapter provides an overview of how graphs are created with the GTL and a brief discussion of what is going on behind the scenes. All the examples are completely coded. You can copy and paste these programs into an editor of a SAS Session (beginning in SAS 9.2) and follow the steps as they are described.
As you learned in Defining the Graph Template, creating a graph using GTL is a two-step process:
  1. Use PROC TEMPLATE to define a STATGRAPH template with GTL syntax. Compile and save this template.
  2. Create the graph by running the SGRENDER procedure to associate the appropriate data with the template.