Collecting and Using Industry and Occupation Data

Collecting and Using Industry and Occupation Data logo

Program Code for Census 2017 Industry and 2018 Occupation Codes

Use the following code if your source data uses U.S. Census Bureau 2017 industry and 2018 occupation codes.

Although the autocoding resources currently available from NIOSH use 2012 industry and 2010 occupation codes, you may need to recode data that was not coded using these resources. In that case, your data may use the more recent 2017 industry and 2018 occupation codes, for example if you are analyzing current data from the American Community Survey (ACS) or Current Population Survey (CPS).

Using the text files below, copy and paste the program code directly into the Program Editor of Epi Info 7’s Classic Analysis module.

Notes:

  • For illustration purposes, the variables containing the industry and occupation codes referred to by the programs are named ICode and OCode respectively. These names match the default names of the industry and occupation code variables in the IOCode field template included in the Epi Info 7.2.4 Form Designer module.
  • If the variables containing the industry and occupation codes in your dataset have different names, be sure to replace the text strings ICode and OCode in the programs with the variable names used in your dataset.
  • Similarly, the programs are written to create new, recoded variables for broad industry and occupational groups called MjIndGrp and MjOccGrp and for detailed industry and occupational groups called DtIndGrp and DtOccGrp respectively.
  • If you want to use different names for your industry and occupational group variables, be sure to change those text strings to the variable names you want to use as well.
Page last reviewed: November 29, 2021