Add a preceding 0 to numerical variable

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Add a preceding 0 to numerical variable

Weinberg, Jerry

I need to add a preceding 0 to a numerical id variable. Is there a way to do this and keep the 0 as part of the variable?

 

Dr. Jerry Weinberg

Director of Institutional Research

St. Thomas University

305 474-6886

Reply | Threaded
Open this post in threaded view
|

Automatic reply: Add a preceding 0 to numerical variable

John McConnell-2

Hi

 

I'll be out of the office this week until Wednesday 3rd July.

 

I will check mail intermittently and get back to you as soon as i can.

 

Thanks

John

 

 

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Add a preceding 0 to numerical variable

vlad simion
In reply to this post by Weinberg, Jerry
Format the variable with leading zeros.

format id (n8).

If the variable id is of 7 digits length, it will be formatted beginning with 0.

Hth,
Vlad


On Mon, Jul 1, 2013 at 5:39 PM, Weinberg, Jerry <[hidden email]> wrote:

I need to add a preceding 0 to a numerical id variable. Is there a way to do this and keep the 0 as part of the variable?

 

Dr. Jerry Weinberg

Director of Institutional Research

St. Thomas University

305 474-6886


Reply | Threaded
Open this post in threaded view
|

Automatic reply: Add a preceding 0 to numerical variable

David Lynch
In reply to this post by Weinberg, Jerry
Thank you for contacting me.  I will be out of the office until 15th July 2013.  For urgent enquiries, please contact the CRIC office on (03) 5327 9318.

Kind regards,
David