This is the SAS analysis script used to analyse the CPET data for the following paper: Age-adjusted cardiopulmonary function and long-term survival after planned major surgery