I want to merge the Dataset A and Dataset B by CID and get the following output and the output order should be in the order of Dataset A.Look at the following output
ID SID CID IID INM
A1 121 1 001 X
A1 122 1 001 X
A1 123 1 001 X
A1 221 2 002 X
A1 421 4 004 X
A1 422 4 004 X
A1 321 3 003 X
Can anyone help me in getting the above output using merge statement in SAS.
Hi:
This is not an ODS or Base Reporting (PRINT, REPORT or TABULATE) question. The documentation on the MERGE statement is quite thorough and there are a lot of user-group papers on the topic of MERGING and JOINing tables together.
Or, for specific help with your data, you might consider contacting Tech Support.