dataset B also has studywk as s01 s02 s03 ....s11,s12,,,s99 B datasets has more number of observations but i need visit only from dataset B and studywk also.
what is the best proc sql method to get this two datasets merged.
if variable studywk in dataset A is character type. it is first starting:
select b.*
from b,a
where b.studywk contains strip(put(a.studywk,z2.)) ;
Ksharp
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.