BookmarkSubscribeRSS Feed
shellp55
Quartz | Level 8

Hello I am using SAS version 9.3 and EG version 5.1. I have seen some of the other posts about exporting to multiple worksheets in Excel, which I will try, but I'm not sure how to save the data to know what is per worksheet. I have a data set of patient data and I am running various data quality checks on it.  The required fields for each criteria may differ but I want each criteria to be its own Excel worksheet.  So do I save each criteria as its own dataset to be sent to Excel as a separate worksheet or do I create one dataset  with a column of "DQ flag" to identify the criteria the case matches?  Thanks.

1 REPLY 1
Reeza
Super User

Either works, I'd recommend a single dataset.

Having each data set is a manual process and having them all in one allows you to use the BY group processing.

See the Data driven sheet example and the manual multiple worksheet examples here:

Base SAS: Demo: ExcelXP Tagset and Microsoft Excel

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1086 views
  • 0 likes
  • 2 in conversation