A SAS programmer asked how to implement the generalized inverse Gaussian (GIG) distribution in SAS. The GIG distribution is used as a conjugate prior for the variance of a normal distribution, so it appears in some Bayesian models. As its name implies, the generalized inverse Gaussian distribution includes the inverse