New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
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."

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

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