12 dt=
'01jan2020'd; output;
13 dt=
'01jan2020'd; output;
14 dt=
'02feb2021'd; output;
15 dt=
'03mar2022'd; output;
19%mp_distinctfmtvalues(libds=work.fmtvals,var=dt,outds=work.dfv_out)
22 select count(*) into: n_vals from work.dfv_out;
23 select count(*) into: n_hit from work.dfv_out
24 where formatted_value='01JAN2020';
29 desc=Checking that duplicate formatted values collapse to one row,
30 outds=work.test_results
35 desc=Checking that the value carries the variable format,
36 outds=work.test_results