Traditional Graphics in the IML Procedure


Graphics Segments

A graph is saved in a graphics segment, which is simply a collection of primitives and their associated attributes.

Graphics segments are stored in a SAS graphics catalog called WORK.GSEG. If you want to store your graphics segments in a permanent SAS catalog, specify the catalog name in the GSTART call. Each graphics segment has a name. You can use the GOPEN statement to specify a name for a segment. For example, to begin a new segment and name it STOCK1, use the following statement:

   call gopen("stock1");

If you do not specify a name, the IML procedure automatically generates a segment name. In either case, you can use the name to reuse segments. For example, you can reuse a segment in a subsequent graph by using the GINCLUDE call. You can also manage and replay a segment by using the GREPLAY procedure, or replay it in another PROC IML session by using the GSHOW call.

For more information about SAS catalogs and graphics, refer to the chapter on graphics in SAS/GRAPH: Reference.