Converting Numeric and Character Data
1Converting Numeric Variables and Character Variables in SASRandall Reilly; Covance Clinical Pharmacology; Madison, WIINTRODUCTIONThis paper gives a general understanding of how to convert Numeric and Character SAS variables Numeric VARIABLES TO Character VARIABLESThe simpliest way to convert Numeric data to Character data is using the PUT function. Converting numbers tocharacters is quite you have only whole numbers use the following statement:charvar = STRIP(PUT(numvar, 8.));This will output the Character values as whole numbersExample:FROMTO77696934341212***Yo u should always format the new Character variables ( format charvar $8.) and you should always strip the newvariable since Numeric data is right justified and characters are left justified.
1 Converting Numeric Variables and Character Variables in SAS Randall Reilly; Covance Clinical Pharmacology; Madison, WI INTRODUCTION This paper gives a general understanding of how to convert numeric and character SAS variables correctly.
Download Converting Numeric and Character Data
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: