MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sas-COMAPRISON OF VARIABLES

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
yatri
Beginner


Joined: 23 Aug 2005
Posts: 12
Topics: 10

PostPosted: Mon Oct 03, 2005 9:43 am    Post subject: sas-COMAPRISON OF VARIABLES Reply with quote

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
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Mon Oct 03, 2005 5:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group