I'm using the ODS EXCEL statement to create an Excel file. I can format the cells using all of the PROC REPORT options, but only the cells containing data are formatted on the resulting sheet. Is there a way to tell Excel to format all cells in the target sheet the same way, regardless if data is written to them from the ODS EXCEL statement? The reason is that I need to add more rows from a text file and want that data to be properly formatted.
Cynthia - thanks for the response. I guess I should have given more details. I have a files that use more memory in the ODS process than my system allows, so to get around that, I'm writing 1 observation to the formatted Excel file, then writing the rest of my observations to a delimited text file, which I'm then importing into the Excel file. I was hoping to find a way to format the whole sheet when I write the one observation, but it would make sense that SAS can only control the observations it's writing. So I just have to manually update the formats of the Excel columns prior to the text import.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.