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 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 27 Jan 2003 12:42:57 -0800
Reply-To:   ulagappan <ulagappan@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   ulagappan <ulagappan@HOTMAIL.COM>
Organization:   http://groups.google.com/
Subject:   sql substring
Content-Type:   text/plain; charset=ISO-8859-1

Please help me. I am new to these syntax.

I have date stored in mmddyy format. I need to check its validity.

I am using Proc sql and an array.

I assign month and corresponding date using array

data _null_; array mon(12) 31 28 31 30 31 30 31 31 30 31 30 31;

Here is proc sql proc sql; select tdate from work.project1 where substr(tdate,3,2)> mon[%substr(tdate,1,2); %put " Improper date" tdate ;

Thanks


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