A 45-year-old man presents with severe epigastric pain radiating to the back and vomiting. Serum amylase is three times the upper limit of normal. He drinks 35 units of alcohol per week. Which initial management step is most important in the first 24 hours?