分析屋のH.Wです。 今回はSASでもできるけど、SQLを使った方が早いし便利なのに… と思った部分を紹介します。 ①レコード数をマクロ変数にするやり方 このデータセットを使用します。 data xxx; input TRTAN SUBJID $20.; cards; 1 001 1 002 1 003 2 004 2 005 ; run; これは ...
The following examples use the SQL procedure to query, update, and create DBMS tables. Querying a DBMS Table This example uses the SQL procedure to query the ORACLE table PAYROLL. The PROC SQL query ...
In this example, you create a simple table to test for yourself how the options work. To use name literals, you must specify the SAS system option VALIDVARNAME=ANY. Notice that you print the new DBMS ...