Date: Wed, 16 Jan 2002 13:46:13 -0500
Reply-To: Roger Lustig <rlustig@CBDCREDIT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Roger Lustig <rlustig@CBDCREDIT.COM>
Organization: Creative Business Decisions, Inc.
Subject: Re: I need your help... Placing decimal in New Value
Content-Type: text/plain; charset=us-ascii; format=flowed
sample1 = sample1 / 10**decimal;
AT wrote:
> Hi!
>
> I have this following dataset decimal (char field) and sample1 (char
> field).
>
> decimal Sample1
> 3 0049
> 2 0051
> 3 0125
>
> decimal is the number of place needs to move for Sample1 which read
> from right to left.
>
> so for decimal=3 than sample1 = 0.049
>
> I would like my output to look like this:
>
> Sample1
> 0.049
> 00.51
> 0.125
>
> How can I do this? Please help.
>
> AT
>
|