|
If VType( Var1 ) = 'C' Then Do ;
XXX = 1 ;
YYY = 2 ;
End ;
Else Do ;
XXX = 99 ;
YYY = 99 ;
End ;
Toby Dunn
To sensible men, every day is a day of reckoning. ~John W. Gardner
The important thing is this: To be able at any moment to sacrifice that
which we are for what we could become. ~Charles DuBois
Don't get your knickers in a knot. Nothing is solved and it just makes you
walk funny. ~Kathryn Carpenter
From: "Vijaya Kumar Damodaran (ETS)" <vijayakumard@HCL.IN>
Reply-To: "Vijaya Kumar Damodaran (ETS)" <vijayakumard@HCL.IN>
To: SAS-L@LISTSERV.UGA.EDU
Subject: How can we find the datatype of a variable in runtime
Date: Thu, 5 Apr 2007 20:42:44 +0530
Hi,
I would like to use an IF condition as follows.
IF datatype(variable) =character then <SAS statement>;
Else <SAS statement>;
Thanks in Advance,
Vijaya Kumar D
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail
is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
_________________________________________________________________
Download Messenger. Join the i’m Initiative. Help make a difference today.
http://im.live.com/messenger/im/home/?source=TAGHM_APR07
|