Setting the font size for reports
I need to set the font size to Arial 13 in my reports (PRTF). How can I do this?

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.

    By submitting your registration information to Search400.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of Search400.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

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.

This was first published in September 2005