Hi:
With the LISTING window, as with PDF and RTF, every PROCEDURE step starts a new page, page breaks have nothing to do with the TITLE statement. So I do not know what is wrong with your PROC PRINTS. Possibly check your FORMDLM= system option, which can alter the page break character for text files.
But, as shown in my output, every procedure starts a new page. The new page will NOT be visible per se in the Notepad viewer, but should be respected when you print or open the TXT file in Word.
If you want each PRINT to have a TITLE, then use a TITLE statement before each PROC PRINT, as I show in my code. I have nothing else to suggest, since the normal behavior of every PROCEDURE step is to start a new page whether or not there is a TITLE statement.
The ability to left/right/center justify the title is not a feature that will work in the LISTING or TXT output as it does in PDF or RTF or HTML. This is why most of the students I encounter who are producing the type of demographic report that you show are using either RTF output or PDF output.
You can take complete control of writing your report to the listing window, but it will require that you write every header and every variable on the report using the DATA step and PUT statements. It is possible and it is the way that these reports used to be written many years ago, before the introduction of the Output Delivery System. For an example of using DATA _NULL_ with FILE PRINT for ODS LISTING, please review the examples here: http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a002051742.htm
If you are going to follow this approach, then none of the ODS style attribute techniques will work for TXT output.
cynthia
**
**
Hi;
It looks like you have posted 2 very, very long programs. And, all you did was post code. You didn't post a question. But at this point, your code is so large that it will be nearly impossible for people to understand the flow and your question.
You might want to work with Tech Support on your question(s) whatever they are.
cynthia
Hi.
I actually have some questions but I placed the code as I finished it yesterday and it worked in any respect. So it was just a sign of completion of the task. . I will write tomorrow my doubts.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.