[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sas-l
Subject:    Re: Parsing a Field
From:       Biff Canlett <Biff () CANLETT ! COM>
Date:       2001-05-31 23:50:22
[Download RAW message or body]

Lowrange = Scan(range,1," -");
Hirange = Scan(range,2," -");
Units = Scan(Range,-1," -");  /* or Scan(Range,3," -")  */
"Terry Fudin" <t.fudin@GENAISSANCE.COM> wrote in message
news:200105312240.f4VMejx190912@listserv.cc.uga.edu...
> I have a character Range field which contains the following information:
>
> 0.5-1.2 mg/dL
>
> What is the best way to separate it into three variables?
>
> Lowrange    HiRange    Units
>
>  0.5         1.2       mg/dL


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic