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 (May 1999, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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:  <>
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: | 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

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