Hello,
I have a dataset (with 18 string and numeric variables) which I need to turn into a standard text file, with 100 positions per record (row), with no tabs, commas, delimiters, or other punctuation. I wanted to know if I can use Stata to turn my dataset into a text file and to position each data element in exact record positions (described below):
(1-20) LAST NAME
(21-35) FIRST NAME
(36) MIDDLE INITIAL
(37-45) SOCIAL SECURITY NUMBER
(46-47) MONTH OF BIRTH
(48-49) DAY OF BIRTH
(50-53) YEAR OF BIRTH
(54-71) FATHER’S SURNAME
(72) AGE UNIT (at death)
(73-74) NUMBER OF AGE UNITS (at death)
(75) SEX
(76) RACE
(77) MARITAL STATUS
(78-79) STATE OF RESIDENCE
(80-81) STATE OF BIRTH
(82-91) CONTROL/ID NUMBER
(92-97) OPTIONAL USER DATA
(98-100) BLANK FIELD
Here are two examples of what a record with 100 positions following the position of each variable would look like:
WASHINGTON GEORGE T28516085604081731WASHINGTON 075121013059A536a58 060183
ROOSEVELT ELEANOR 26270217111231926ARIAS 029211NVCA62345 122296
Thank you!!
I have a dataset (with 18 string and numeric variables) which I need to turn into a standard text file, with 100 positions per record (row), with no tabs, commas, delimiters, or other punctuation. I wanted to know if I can use Stata to turn my dataset into a text file and to position each data element in exact record positions (described below):
(1-20) LAST NAME
(21-35) FIRST NAME
(36) MIDDLE INITIAL
(37-45) SOCIAL SECURITY NUMBER
(46-47) MONTH OF BIRTH
(48-49) DAY OF BIRTH
(50-53) YEAR OF BIRTH
(54-71) FATHER’S SURNAME
(72) AGE UNIT (at death)
(73-74) NUMBER OF AGE UNITS (at death)
(75) SEX
(76) RACE
(77) MARITAL STATUS
(78-79) STATE OF RESIDENCE
(80-81) STATE OF BIRTH
(82-91) CONTROL/ID NUMBER
(92-97) OPTIONAL USER DATA
(98-100) BLANK FIELD
Here are two examples of what a record with 100 positions following the position of each variable would look like:
WASHINGTON GEORGE T28516085604081731WASHINGTON 075121013059A536a58 060183
ROOSEVELT ELEANOR 26270217111231926ARIAS 029211NVCA62345 122296
Thank you!!
Comment