Hi everyone!

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   %3s
Then, I'm using this line of code to execute the dictionary:
Code:
infile using record_type_1_dict.dct, clear