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 (January 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sat, 24 Jan 2009 02:40:14 -0800
Reply-To:   ash007 <RamsamyAshley@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   ash007 <RamsamyAshley@GMAIL.COM>
Organization:   http://groups.google.com
Subject:   'do over' doesn't work
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset=ISO-8859-1

hi,

why my code doesn't work with 'do over'. thanks.

ash007.

DATA TABLE_BIDON; INPUT X1 X2 X3 X4 X5 $; CARDS; 2 . 5 1161 ABÉLIEN 35 6 3 1336 ALMÉRIC 82 1 5 1499 ;RUN;

DATA TABLE_BIDON (DROP = _I); SET TABLE_BIDON; ARRAY A_VARNUM[*] _NUMERIC_; ARRAY A_VARCAR[*] _CHARACTER_;

DO OVER A_VARNUM[*]; IF A_VARNUM[*] = . THEN A_VARNUM[*] = 0; END;

DO OVER A_VARCAR[*]; IF COMPRESS(A_VARCAR[*]) IN (".","") THEN A_VARCAR[*] = "Z"; END; RUN;


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