Hello @Q1983 While there could be multiple approaches to address the issue, with the sample data you have provided,
I would follow the following approach, I would like to have the data as csv. My code would be as follows: Please note I have reordered your variables. We would need to define a length for the Email column.
data have (drop=_completion_date);
infile cards DLM=',' dsd;
Retain First Last Age Completion_date Email;
length Email $ 50 _completion_date $ 50;
format Completion_date mmddyy10.;
input Email $ First $ Last $ Age _completion_date $ ;
Completion_date=input(scan(_completion_date,1,''),mmddyy10.);
cards;
joesmith@email.com, Charles, Smith ,, 1/11/2016 01:50 PM America/New York
ryna@email.com , Dennis ,Jones , 22, 1/1/2016 01:50 PM America/Washington
;
run;
... View more