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 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 20 Apr 2008 17:33:59 -0400
Reply-To:   Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:   Re: Generate if elfe statement from adataset
Comments:   To: madhav1730@GMAIL.COM

I'm confused as to what you are looking for. I assume you are showing the results of having run a proc contents on your SAS dataset.

But then you go on to indicate using variables which don't appear to be in the data set.

Then you show quite valid data step code, except that you repeat the first condition twice (thus the first else if wouldn't have any effect other than wasting processing time), and you don't end each statement with a semi-colon.

What are you really looking for?

Art -------- P.S. I think you'll increase the likelihood of anyone responding if you leave off the ASAP overtones. --------- On Sun, 20 Apr 2008 14:07:56 -0700, madhav1730@gmail.com <madhav1730@GMAIL.COM> wrote:

>My dataset proc contants contains the following variables > > 2 CD_LOAN_GRP Char 1 >$1. > 5 CD_OPER Char 2 >$2. > 6 DT_CREATE Num 8 >DATETIME25.6 > 7 DT_LST_UPDT Num 8 >DATETIME25.6 > 1 ID_FILE Num 8 > 8 ID_USER_CREATE Char 128 > 9 ID_USER_LST_UPDT Char 128 > 3 NAME_DIAL_ID Char 20 > 4 NAME_LOAN_ATTRB Char >I need to generate from this dataset following if datasets to use in >another datastep. >if FICO_SCORE >=720 and LTV >= 0.2 and AGE>= 20 then >var = 600999 >else if FICO_SCORE >=720 and LTV >= 0.2 and AGE>= 20 then >var = 600999 >else var=8989485 >Please provide code to generate above IF statements ASAP.Thanks for >yur help in advance


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