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 (June 2000, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 15 Jun 2000 10:19:00 -0400
Reply-To:   Mark.K.Moran@CCMAIL.CENSUS.GOV
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Comments:   To: peter.crawford@db.com
From:   Mark Moran <Mark.K.Moran@CCMAIL.CENSUS.GOV>
Subject:   Re: Antwort: IF-THEN LOG ERROR
Comments:   To: SAS-L@LISTSERV.VT.EDU
Content-type:   text/plain; charset=us-ascii

Thank you, Peter ... and Eva, and James, and Tom, and Koen, and David, and Bernard, and Ed, and whoever has sent me something after I push the "send" button. It really pays to have awake friends!

;) Mark

peter.crawford@db.com on 06/15/2000 10:22:40 AM

To: Mark K Moran/CSD/HQ/BOC@BOC

cc: SAS-L@listserv.uga.edu

Subject: Antwort: IF-THEN LOG ERROR

check out the character between '20320' and '20910' I should be a comma ',' but it is a dot '.' " '20320'.'20910' " Worth trying to fix this first

Datum: 15.06.2000 15:02 An: SAS-L@listserv.uga.edu

Antwort an: Mark.K.Moran@ccmail.census.gov

Betreff: IF-THEN LOG ERROR Nachrichtentext:

The following SAS 6.12 log shows the first error in a much longer program. I suspect the problem with the IF-THEN has to do with parentheses. The line overtop the 200 occurs directly lined up under the word "and" in line 288 (it got shifted when I cut and pasted into this email, but I hopefully have moved it back to the correct spot). I am wondering what the problem is. Maybe it would help if I woke up! :) Mark >>>>>>>>>>>>>>>> cpu time 0.89 seconds

283 284 Data WORK.WHIST(keep=id by1 by2 by3 weight bynum type1 type2 type3 item nvalue); 285 length BY2 $2; 286 set WORK.GIST; 287 Indicate = empt; 288 if ((bk IN ('20210','20220','20310','20320'.'20910','20920')) and (empt=2)) - 200 289 THEN by1='20A'; 290 /* IF (bk IN ('20210','20220','20310','20320','20910','20920')) */ 291 /* THEN by1=bk; */ 292 ELSE IF (bk IN ('20210','20220','20310','20320','20910','20920')) and (empt=1)) - 22

200 293 THEN by1='20B'; ---- 202 294 ELSE by1=substr(bk,1,3); ERROR: No matching IF-THEN clause. 295 by2=Indicate; 296 by3=other;


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