LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 5 Apr 2007 15:27:00 +0000
Reply-To:   toby dunn <tobydunn@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   toby dunn <tobydunn@HOTMAIL.COM>
Subject:   Re: How can we find the datatype of a variable in runtime
Comments:   To: vijayakumard@HCL.IN
In-Reply-To:   <C527DE636D0FE74ABDD3D7E44759013F01F4EF2B@CHN-HCLT-EVS03.HCLT.CORP.HCL.IN>
Content-Type:   text/plain; format=flowed

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


Back to: Top of message | Previous page | Main SAS-L page