- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 05-12-2021 04:20 PM
(3918 views)
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
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.