SASUnit Examples
Version 1.5.0
Main Page
Modules
Files
File List
basedatasets.sas
Go to the documentation of this file.
1
20
%MACRO basedatasets;
21
22
data work.Customer;
23
do
i=1 to 5;
24
CustomerNumber=i;
25
CustomerName=
"Customer "
!! put (i,z2.);
26
output;
27
end;
28
drop i;
29
run;
30
31
data work.Contracts;
32
do
i=1 to 8;
33
ContractNumber=i;
34
ContractType=mod (i,3)+1;
35
output;
36
end;
37
drop i;
38
run;
39
40
data work.CustomerContracts;
41
do
i=1 to 8;
42
ContractNumber=i;
43
CustomerNumber=mod (i,5)+1;
44
output;
45
end;
46
drop i;
47
run;
48
49
%MEND basedatasets;
saspgm
basedatasets.sas
Generated on Fri Jan 16 2015 14:00:28 for SASUnit Examples by
1.8.4