  A FORM based package (ON-SHELL2) for the calculation of two loop self-energy
diagrams with one nonzero mass in internal lines and the external momentum on
the same mass shell is elaborated. The algorithm, based on recurrence relations
obtained from the integration-by-parts method, allows us to reduce diagrams
with arbitrary indices (powers of scalar propagators) to a set of master
integrals. The SHELL2 package is used for the calculation of special types of
diagrams. Analytical results for master integrals are collected.
