PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: barber

Converting Numeric and Character Data

1 Converting Numeric Variables and Character Variables in SASR andall 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**You should always format the new Character variables ( format charvar $8.)

2 1 01 2 02 3 03 11 11 12 12 26 26 If you tried to convert the data using the first example: charvar = STRIP(PUT(numvar, 8.)); The ouput will be a character variable, which will sort as (remember a character 1 in the first position sorts before a

Loading..

Tags:

  Data, Character, Converting numeric and character data, Converting, Numeric, Sort

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Transcription of Converting Numeric and Character Data

Related search queries