In mysql this would look like: substring_index(email, '@', -1)
But I can't seem to find if a function like this is available in SAS proc sql.
this seems to work
data _null_;
x='rxx@gmail.com';
dom=substr(x,findc(x,'@'));
put dom;
run;
Use FINDW to find the position of @ and SUBSTR to return the remainder?