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-wordmark-gradient-background 3.pngSAS Innovate

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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