Add leading number "1" in each row of a variable on year in Stata

#1
Hi guys!

I would like to know how to add the number one "1" in each row of a numeric variable on year of birth.

Explaining it better: my data set came with the variable "year of birth" with only the last three numbers, for instance "996", "987", "976", the one "1" is missing in all rows. I really need to add this first one "1" to this variable for compatibility reasons with other data sets.

Thus I would like to know how to add this missing one "1" to each row of this variable on year of birth.

Thanks a lot!!!!
 
#2
Code:
clear all
set more off

set obs 10
set seed 1234

gen num = floor(runiform()*100) // numeric type
gen numst = string(num)  // string type
gen numst2 = "1" + numst // adjusted string type

list
Use -real()- or -destring- if you want to convert strings to numeric.