Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mp_guesspk.test.sas
Go to the documentation of this file.
1
/**
2
@file
3
@brief Testing mp_guesspk macro
4
5
<h4> SAS Macros </h4>
6
@li mp_guesspk.sas
7
@li mp_assert.sas
8
9
**/
10
11
data work.pkdata;
12
do
id
=1 to 10;
13
grp=ifn(
id
<6,1,2);
14
output;
15
end;
16
run;
17
18
%mp_guesspk(baseds=work.pkdata,outds=work.pk_out)
19
20
proc sql noprint;
21
select count(*) into: n_rows from work.pk_out;
22
quit;
23
24
%mp_assert(
25
iftrue=(&n_rows>0),
26
desc=Checking that at least one candidate primary key is proposed,
27
outds=work.test_results
28
)
tests
base
mp_guesspk.test.sas
Generated by
1.15.0
For more information visit the
Macro Core library
.