BookmarkSubscribeRSS Feed
deltaskipper
Fluorite | Level 6

I am encountering a weird problem while joining , I have to join two data set namely POS and london_postal_codes.

The problem I facing is that when I join them in mysql server no missing values are there for the variables of table london_postal_code  but when I did the same thing in sas

there is lot of missing values.

 

my code :

proc sql;
create table case_2.combined_data as
select * from
case_2.pos_q1 t1
left join case_2.london_postal_codes t2 on t1.customer_postcode=t2.postcode
;
quit;
run;

Any suggestions?

1 REPLY 1
LinusH
Tourmaline | Level 20
Apparently the inbrhe for youbare using in SAS, soes not match on the join column. So its down to boring data quality checks. Like try to left/trim so no spaces are lingering.
Data never sleeps

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1 reply
  • 961 views
  • 0 likes
  • 2 in conversation