I am a beginner at PROC TEMPLATE. I follow the PROC TEMPLATE example here: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/odsproc/n1sbdyv873pfcmn1e3a8p2z4k055.htm and now my PROC FREQ shows the frequency counts in format comma12. Works as expected. But then, I want to do another PROC FREQ later in the same program with the default format for frequency counts, how do I return to the default format? Is it simply running PROC TEMPLATE again with the BEST7. format for frequency counts?
Is the some way to save the template with comma12. format and call it as needed?
If you followed the example then you probably used ODS PATH to add a "search" path for your custom templates. You can use ODS PATH with a REMOVE option to stop SAS from looking there, and bypass your custom template.
Best practice is to keep your custom templates in a location you control, and don't override the ones that ship with SAS (in the SASHELP location).
If you followed the example then you probably used ODS PATH to add a "search" path for your custom templates. You can use ODS PATH with a REMOVE option to stop SAS from looking there, and bypass your custom template.
Best practice is to keep your custom templates in a location you control, and don't override the ones that ship with SAS (in the SASHELP location).
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.