Resumo: The purpose of this paper is to show a SAS® macro named %surveygenmod developed in the SAS/IML® procedure as an upgrade of macro %surveyglm developed by Silva and Silva (2014) to deal with complex survey design in generalized linear models (GLM). The new capabilities are the inclusion of negative binomial distribution, zero-inflated Poisson (ZIP) model, zero-inflated negative binomial (ZINB) model, and the possibility to get estimates for domains. The R function svyglm (Lumley, 2004) and Stata software were used as background, and the results showed that estimates generated by the %surveygenmod macro are close to the R function and Stata software.