SAS Statements

The ODS Graphics procedures support a number of SAS statements. Some of these, such as the TITLE statement, are global statements.
A global statement is a statement that you can specify anywhere in a SAS program. A global statement sets values and attributes for all the output created after that global statement is specified in the program. The specifications in a global statement are not confined to the output generated by any one procedure. However, they do apply to all the output generated thereafter in the program, unless they are overridden by a procedure option or another global statement.
As shown in A Typical Program, the TITLE statement is used toward the beginning and end of the program. The first statement as illustrated in line 3 in Typical SAS Program specifies the title. The second statement as illustrated in line 10 in Typical SAS Program cancels the current title.
The example program also uses a WHERE statement as illustrated in line 5 in Typical SAS Program to subset the data that is used in the graph. In the example, the WHERE statement selects observations based on their date (2002 or greater) and the type of customer (residential).