ODS and Base Reporting

Build reports by using ODS to create HTML, PDF, RTF, Excel, text reports and more!
BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Vinz867
Fluorite | Level 6

I have a merge logic and I am trying to understand what kind of join it is doing. Thank you the help!

 

merge DATA_A(in=a) DATA_B(in=b) data_C(in=c);
by id_loan_syst_gend;
if a and not c;

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

This is a match-merge of three datasets by the key variable id_loan_syst_gend. Only rows from DATA_A where there is not a match in DATA_C are kept. Have a look at the examples in the link I provided to understand a match-merge.

View solution in original post

3 REPLIES 3
SASKiwi
PROC Star

This is a match-merge of three datasets by the key variable id_loan_syst_gend. Only rows from DATA_A where there is not a match in DATA_C are kept. Have a look at the examples in the link I provided to understand a match-merge.

Vinz867
Fluorite | Level 6

I see. If I am re-writing this through query builder, what type of join will A and B be? 

SASKiwi
PROC Star

The nearest equivalent in SQL is a LEFT JOIN.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 3071 views
  • 0 likes
  • 2 in conversation