Specifying the Table
After writing
the SELECT clause, you specify the table to be queried in the FROM
clause. Enter the keyword FROM, followed by the name of the table,
as shown:
proc sql;
select empid,jobcode,salary,
salary*.06 as bonus
from sasuser.payrollmaster
where salary<32000
order by jobcode;
The PROC SQL step above
queries the permanent SAS table Payrollmaster, which is stored in
a SAS library to which the libref Sasuser has been assigned.
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.