Example of input data sets and what the result of the join should look like.
Sometimes data step Merge is appropriate instead of SQL join if the existing order of the two sets is important.
@saikiran_nemani wrote:
We have to add a variable called Contractor from WMIS dataset to the existing query and on which join we can perform ?
Provide example data of the input data sets as data step. An Example:
data example; input x $ y z; datalines; abc 123 456 pdq 987.3 333 ; run;
Then a similar step to show what the result should be for the two small example input data sets.
That way we know 1) what the variable names and types are, 2) which data set they come from, 3) order of the data which may be critical if there are no columns to actually "join on".
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.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.