View previous topic :: View next topic |
Author |
Message |
yatri Beginner
Joined: 23 Aug 2005 Posts: 12 Topics: 10
|
Posted: Mon Oct 03, 2005 9:43 am Post subject: sas-COMAPRISON OF VARIABLES |
|
|
HI,
is it possible to compare two variables in sas? if yes then please post how to do the same.
by comparing two variables i mean ,
can i have a statement like var1=var2?
or i can only comare var1 withs ome string or constant ? like var1='abcd'? _________________ Thanks,
Gayatri. |
|
Back to top |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Mon Oct 03, 2005 5:33 pm Post subject: |
|
|
Gayatri,
Certainly you can compare variables in SAS. Just use "IF VAR1 = VAR2 THEN..."
The Quick Manuals link at the top of this page contains a link to the SAS online documentation. It's well worth a visit.
Cheers,
Merv _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
 |
|
|