This question is building off of a solution from ballardw(Super User) regarding building a proc informat approach to labeling employment titles.
I have many, many lines of type_firm descriptions a sampling will look something like in Excel
Agricultural_worker = 2003
Apparel_Manufacturing = 2004
Beverage_Manufacturing = 2002
Cabinets_Woodworking = 2005
Construction_Homes_Residential = 3002
(the codes are what I am using to delineate the different firm types)
and so on I guess I have two questions
1) can I just copy and paste these rows into my data step - actually the Proc format
(and I have ~ 940 rows and Services will have well over 1500)
and 2
Once step number 1 is successful the should look like
Proc format
invalue Firm_type (upcase)
Agricultural_worker = 2003
Apparel_Manufacturing = 2004
Beverage_Manufacturing = 2002
Cabinets_Woodworking = 2005
Construction_Homes_Residential = 3002 and so on
how would I code so that " " can be added to the start and end of the type firm to look like
"Agricultural_worker" = 2003
"Apparel_Manufacturing" = 2004
"Beverage_Manufacturing" = 2002
"Cabinets_Woodworking" = 2005
"Construction_Homes_Residential" = 3002
Another thing just occurred to me the codes on the excel spread sheet look like '= then the no
so the ' before the = needs to be removed too.
This is a long convoluted question, but I appreciate your help and assistance.
wlierman
... View more