The LASTPAGE inline style command might display garbled text in PDF files


The inline style command LASTPAGE can be used to display total page number information in a PDF file that does not contain images. A PDF file might be created with garbled text where the LASTPAGE number should be written. This is most likely to occur if the following option settings from the options group ODSPRINT are in effect:

To circumvent the problem, set the PRINTERPATH= option to PDF before the ODS PDF FILE= statement, as shown below:

options printerpath=pdf;