All examples in this chapter are presented using PROC SQL
For running the SQL statements in SAS, see the previous chapter.
In principle, just copy and paste the SQL statement in the PROC SQL
command.
Note: No quote marks are required to enclose the SQL statement, but the semicolon at the end of the SQL statement is required. This is SAS-specific.
The SQL commands and clauses are not case sensitive; in general, they are written in upper case.
# Give your own path
libname SASData 'Path\To\Folder\data';
proc sql;
SELECT *
FROM tblStudent
;
quit;
%put NUMBER_RECORDS = &sqlobs;