
• When a PROC SQL statement is executed, PROC SQL continues to run until a
QUIT statement, a DATA step, or another SAS procedure is executed. Therefore, you
do not need to repeat the PROC SQL statement with each SQL statement. You need
to repeat the PROC SQL statement only if you execute a QUIT statement, a DATA
step, or another SAS procedure between SQL statements.
• SQL procedure statements are divided into clauses. For example, the most basic
SELECT statement contains the SELECT and FROM clauses. Items within clauses
are separated with commas in SQL, not with blanks as in other SAS code. For
example, if you list three columns in the SELECT ...