Hi,
Is there any way in SAS to identify and remove blank pages in RTF with the SAS program?
I have a file with more than 100 pages, So it is hard to check each page manually every time when I rerun the output. Any input is much appreciated!
Thank You,
Regards,
Santhosh
The rtf file is text-based, so if you know the code for the blank page, you can process it.
Check this.
filename sample "c:\temp\class.rtf";
ods rtf file=sample;
proc print data=sashelp.class;
run;
ods rtf close;
data _null_;
infile sample;
input;
put _infile_;
run;
However, rather than deleting the blank page, it would be better to modify the program so that the blank page is not generated.
If you can provide the rtf with the blank page or its executable program, you may get more advice.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.