12%let today=%sysfunc(today(),yymmddn8.);
14%mp_assertscope(SNAPSHOT)
15%put scope check:%mf_uid();
16%mp_assertscope(COMPARE,
17 desc=Checking that mf_uid does not leak scope,
18 outds=work.test_results
25 iftrue=(%substr(&uid1,1,8)=&today),
26 desc=Checking that the uid starts with the yymmddn8 form of today,
27 outds=work.test_results
31 iftrue=(%sysfunc(countw(&uid1,_))=4),
32 desc=Checking that the uid has four underscore separated parts,
33 outds=work.test_results
37 iftrue=(%length(&uid1)>=20),
38 desc=Checking that the uid is
long enough to carry a timestamp and a job
id,
39 outds=work.test_results
43 iftrue=(&uid1 ne &uid2),
44 desc=Checking that two calls
return different uids,
45 outds=work.test_results