- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 02-25-2021 07:13 AM
(461 views)
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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."