We present calculations of next-to-leading order and resummed QCD corrections for semi-inclusive deep-inelastic scattering and single-inclusive e+e− annihilation. The resummation is performed to next-to-leading logarithmic accuracy. Knowing these QCD corrections is important in order to extract parton distribution functions and fragmentation functions from present and future data for these reactions. We present phenomenological results relevant for the COMPASS, HERMES, and BELLE experiments