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

Join us for our biggest event of the year!

Four days of inspiring keynotes, product reveals, hands-on learning opportunities, deep-dive demos, and peer-led breakouts. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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