Date: Wed, 12 May 1999 11:46:23 -0500
Reply-To: Michael S Hines <mshines@PURDUE.EDU>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Michael S Hines <mshines@PURDUE.EDU>
Subject: Re: inputing dollar variable
In-Reply-To: <Pine.HPP.3.91.990512102601.5767A-100000@ux6.cso.uiuc.edu>
Content-Type: text/plain; charset="us-ascii"
filename myfile <where it is>;
data mydata;
infile myfile;
input @whereever xamt $char15.; /* xamt is temp var */
xamt=compress(xamt,'$,'); /* scan for $ sign and for comma and remove
them */
amt=input(xamt,15.); /* now read in *clean* amount variable */
drop xamt; /* drop temp var */
At 10:27 AM 5/12/99 -0500, you wrote:
>Okay, I have an easy question --
>How do I input a dollar-formatted variable
>that looks like this: $60,000 ?
>
>Thanks,
>
>Jean Roth
>
===================================================================
Internet: mshines@purdue.edu | Michael S. Hines CDP,CISA,CIA,CFE
Voice: (765) 494-5338 | Coordinator of Systems and Programming
FAX: (765) 496-1466 | Purdue University
| 1280 Engineering Administration
| West Lafayette, IN 47907-1280
|