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 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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