Hi Patrick I tried part of your code for alpha characters above, which is definitely beyond my SAS capabilities--in spite of the fact I have been programming with it for 3 years, and it worked great for the docket numbers! I pasted the modified version of it below. My question is can this be modified to dummy a first, last, middle name field as in the below format? Smith, John Doe, Jane, V. Jackson, Randy, G. Hanson, Therese data masked_docket_lookup; set af3(keep=docket); _masked_docket=docket; stop; run; %let rc=byte(65+floor(ranuni(0)*26)); %let rd=floor(ranuni(0)*10); data want(drop=_:); if _n_=1 then do; if 0 then set af3 masked_docket_lookup; dcl hash Hdocket(dataset:'masked_docket_lookup'); _rc=Hdocket.defineKey('docket'); _rc=Hdocket.defineData(all:'y'); _rc=Hdocket.defineDone(); end; set af3 end=last; if Hdocket.find() ne 0 then do; _masked_docket=cats(&rc,&rc,'-',&rd,&rd,&rd,&rd,&rd,'-',&rd,&rd); _rc=Hdocket.add(); end; docket=_masked_docket; if last then Hdocket.output(dataset:'masked_docket_lookup_tmp'); run;
... View more