I need to set the font size to Arial 13 in my reports (PRTF). How can I do this?
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
There is a font keyword in DDS that is used to set the font and point size, either for the whole record format, or for an individual field. Look in the DDS manual to see how it works (see). You can also specify the font on the CRTPRTF, CHGPRTF and OVRPRTF commands. This applies the specified font to all output in the printer file, except where font is specified. You could also try the FONTNAME DDS keyword, which I have not tried yet. See here.
Note that Arial is not available! Arial is a Microsoft font, designed by Monotype, and a poor imitation of Helvetica. If you are interested, click here for more information. But you can use Helvetica, or any sans-serif font you like the look of, if you can find its font number in IBM's manuals. This can be difficult, since I don't remember the manual to look at! But you can see a list of fonts and their font IDs here, which will help you.
Do some tests, and see what suits you best. But be aware that using a non-monospaced or typographic font in DDS can change the position of other 'normal' output on a page. You may have to fiddle with your DDS to get your stuff to look right.
Dig Deeper on Performance
Related Q&A from John Blenkinsop
When an error occurs on an IBM command, the diagnostic messages are sent first, then an escape message, which you can monitor. On AS/400 you see the ...continue reading
Learn how to 'append data to the file' with the FTP DIR command, and eliminate the hassle of having to end the FTP session and restart to view ...continue reading
RPGIV will 'think of' incoming integer fields as binary, and then will redefine them in the program structures as PACKED. So, when you chain a record...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.