I am trying to parse a string variable called "record" within a .dta file. How would I write that in the dictionary file?
Code:
dictionary using string_parse_1.dta {
str1 red %1s
str8 orange %8s
str8 black %8s
str8 pink %8f
str9 yellow %9s
str1 green %1s
str30 purple %3sCode:
infile using record_type_1_dict.dct, clear
0 Response to Parsing a string variable of a dta file using a dictionary
Post a Comment