Quantcast
Channel: ListenData
Viewing all articles
Browse latest Browse all 425

SAS: UNION in PROC SQL (With Examples)

$
0
0

This tutorial explains how to use various forms of UNION in PROC SQL in SAS, along with examples.

Create Sample Datasets

The following SAS program creates datasets that will be used to explain examples in this tutorial.

data datasetA;
input product $ sales;
cards;
A 60
A 65
B 36
C 78
D 91
;
run;

data datasetB;
input product $ profit;
cards;
A 62
A 62
D 23
E 25
F 32
G 41
;
run;
Sample SAS DatasetTo read this article in full, please click here

Viewing all articles
Browse latest Browse all 425

Trending Articles