Usage Note 22405: How do I get the results of a many-to-many merge?
PROC SQL will give you the results of a many-to-many merge. You could also
use a DATA step to do this, but it would take many DATA steps compared to
one PROC SQL query. For example:
proc sql;
select *
from dsn1,dsn2;
quit;
To do a many-to-many merge based on a common variable, you
will need to add the WHERE statement to the query. For example:
proc sql;
select *
from dsn1,dsn2
where dsn1.var=dsn2.var;
quit;
See the
SAS Guide to the SQL Procedure, Version 6, First Edition
or the
SAS Procedures Guide, Version 6, Third Edition
for more information
on PROC SQL.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> Procedures ==> REPORT
|
| Date Modified: | 2007-11-02 12:44:40 |
| Date Created: | 2002-12-16 10:56:34 |