Avatar of morinia
morinia
Flag for United States of America asked on

Converting from numeric to character in SAS

Experts,

I have an issue with fielda defined as numeric 8. I need to convert to character. The problem is there are non- numeric leading characters so when I just move to a defined alpha field I have unreadable characters in front and the character field is not left justified.  

Does anyone know how I can code this to get the fondly move the numeric data.
DatabasesStatistical Analysis System (SAS)

Avatar of undefined
Last Comment
morinia

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
jrb1

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
morinia

ASKER
Yes
Aloysius Low

could you provide examples of the data that you have, the leading non numeric characters?

and just to check: you are sure the new field is a character field?
morinia

ASKER
This worked when I used a data step.  SAS did not like me doing it in one  step in Proc Sql.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck