Transcription of Converting Numeric and Character Data
{{id}} {{{paragraph}}}
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.)
6 Notice that the SSS did not convert to a long name because it isn’t in the PROC FORMAT. **** The DEFAULT option: When using PROC FORMAT the maximum length of …
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}
The SORT Procedure: Beyond the Basics, Sort, PROC SORT, PROC SORT Options NODUPRECS and NODUPKEY Revealed, Removing Duplicates Using SAS, 060-2009: Learn the Basics of PROC TRANSPOSE, 060-2009 Learn the Basics of Proc Transpose, PROC, SAS programs for making SDTM DM, Using the COMPUTE Block in PROC REPORT, Advanced Subqueries In PROC SQL, PROC TRANSPOSE FOR MULTIPLE VALUES KANHAIYA