BookmarkSubscribeRSS Feed
Sathish_jammy
Lapis Lazuli | Level 10

Hi community

 

Could u pls help me to resolve a correct format of UPDATE query... the given code perfectly works on SQL.. but i have no idea about a update JOIN in SAS.


proc sql; update ss_typ set ht = b.Height FROM ss_typ a JOIN anthropometry b ON a.mno = b.patient_id and diabcat = 'normal' and height <> 0 and b.record_date between Diab_date-3 and Diab_date+3; quit;
1 REPLY 1
UdayGuntupalli
Quartz | Level 8

http://support.sas.com/documentation/cdl/en/sqlproc/63043/HTML/default/viewer.htm#n1hz0uhw57yye2n16m...

 

This documentation page has some examples about performing Update using PROC SQL that might be useful 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 932 views
  • 0 likes
  • 2 in conversation