SSAN -first digit is zero

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
a_rosenbaum_(Guest)
Posts: 26
Joined: Tue Oct 10, 2017 12:44 pm

SSAN -first digit is zero

Post by a_rosenbaum_(Guest) » Sat Nov 03, 2001 2:12 pm

I have imported a spreadsheet file with a field of social security numbers.____Unfortunaely if the first number is zero it doies not show____Is there a formula to ad the zero if this condition exists.____Thank you

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: SSAN -first digit is zero

Post by kfleming » Mon Nov 05, 2001 9:20 am

What data type does this field come in as in R&R?__The answer to the question depends on the datatype.______Kathleen__R&R Support

John_McDonald_(Guest)
Posts: 9
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: SSAN -first digit is zero

Post by John_McDonald_(Guest) » Mon Nov 05, 2001 10:40 am

if the field is numeric ____if(field<100000000,"0"+str(field,8,0))____if the field is a character (assuming the field length is 9 characters)____if(left(field,1)=" ","0"+substr(field,2,8),field)____Hope that helps.____

Post Reply