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 (March 2000, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 8 Mar 2000 11:00:16 +0100
Reply-To:     "RLC Roger L. CALVEZ" <ROGER.CALVEZ@WANADOO.FR>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "RLC Roger L. CALVEZ" <ROGER.CALVEZ@WANADOO.FR>
Organization: Famille CALVEZ
Subject:      comma in place of point for decimal separator

Hello,

Is anybody know to read number with comma in place of point for decimal separator ?

The format comma8.2 is not correct.

This above hereafter is correct but I don't want the dummy varaiable car2.

data p1; input @1 car $8. @1 comma1 comma8.1 @1 comma2 comma8.2 ; num=input(translate(car, ".", ","), best.); cards; 0,1 0,01 0,001 1,1 1,01 1,001 ; run; proc print; run;

OBS CAR COMMA1 COMMA2 NUM

1 0,1 0.1 0.01 0.100 2 0,01 0.1 0.01 0.010 3 0,001 0.1 0.01 0.001 4 1,1 1.1 0.11 1.100 5 1,01 10.1 1.01 1.010 6 1,001 100.1 10.01 1.001

Thank for help. =============== Roger L. CALVEZ FRANCE =======================================


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