BookmarkSubscribeRSS Feed
Pooja98
Fluorite | Level 6

hi experts,

i came across the type of merging, can't understand this part alone.....i'll post the whole code and i'll highlight my doubt in  bold letters

 

For Example,

 

data three;

merge two (in=A)

one (in=B);

by ID;

if A;

if ^B then do;

Name=Student_Name;

Marks= Total_Mark;

end;

run;

 

what does the ^ symbol stands for?

TIA

1 REPLY 1
FreelanceReinh
Jade | Level 19

Hi @Pooja98,

 

It's the Boolean operator "NOT", so you can write equivalently

if not B then do;

In your example the condition means "the ID value does not occur in dataset ONE."

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

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