a

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

a

Post by a_rosenbaum_(Guest) » Fri Mar 15, 2002 5:42 pm

i EXPORTED A FILE WHERE THE ZIP CODE WAS TREATED AS A NUMERIC AND IT DROPPED THE LEADING ZERO.____I CHANGED IT TO A CHARCHTER FIELD - HOW DO I ADD A LEADING ZERO - TO THOSE ZIP CODES WHICH HAVE ONLY FOUR CHARCHTERS?

pdempsey
Posts: 56
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: a

Post by pdempsey » Sat Mar 16, 2002 3:52 am

Declare a variable like newcode = "0"+oldcode____You may have to trim or ltrim it depending on how you changed the numeric to a character. You may find that the character field has some left justified blanks, so that would mean "0"+LTRIM(oldcode)____Hope that helps.____Pat Dempsey__

Post Reply