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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 672 views
  • 0 likes
  • 2 in conversation