Below is my code, I want to get a excel files with multiple sheets. My question is how I can specify each sheet name. For example: sheet 1 is named Report, sheet2 is named RESULT, and sheet 3 is named FINDING. data a; length PatientID $2; input PatientID $ Systolic Diastolic @@; datalines; CK 120 50 SS 96 60 FR 100 70 CP 120 75 BL 140 90 ES 120 70 ; data b; length PatientID $2; input PatientID $ Systolic Diastolic @@; datalines; CP 165 110 JI 110 40 MC 119 66 FC 125 76 RW 133 60 KD 108 54 DS 110 50 JW 130 80 BH 120 65 ; data c; length PatientID $2; input PatientID $ Systolic Diastolic @@; datalines; CP 120 75 BL 140 90 ES 120 70 CP 165 110 JI 110 40 MC 119 66 FC 125 76 RW 133 60 KD 108 54 DS 110 50 JW 130 80 BH 120 65 ; ods excel file="path\aaa.xlsx"; proc report data=a; column _all_; run; proc report data=b; column _all_; run; proc report data=c; column _all_; run; ods excel close;
... View more