This is a collection of tips, tricks, and late breaking workarounds that we have discovered or been told about. If you have a tip, trick or fix that belongs here, let us know (Contact Us).
| J D Edwards | PDF Spooled Files | J D Edwards can generate *USERASCII spooled files containing PDF. You can successfully convert these with Spool-a-Matic or send these with SpoolMail by specifying TRANSFORM(*NONE) and an extension of .PDF. |
| Printing | AFP on i5/OS | i5/OS provides powerful printing capabilities collectively known as AFP (Advanced Function Presentation). The base operating system gives you everything you need to take advantage them unless you have IPDS printers in which case you also need PSF/400. For example, you can create overlays (electronic forms) to replace preprinted forms and print invoices on plain paper on your laser printers. |
| Bible | The single best source that we've found for information on all aspects
of i5/OS
printing is the Redbook SG24-4389 Printing V (and
its replacement SG24-6250 Printing VI). The books
are available for download in the PDF
format at www.redbooks.ibm.com. The Redbook supplements the standard reference documents on printing by providing more specific "how to" information, such as diagrams, programming samples, and working examples. We find that it pulls together the information from other manuals and fits the pieces together in an understandable way. |
|
| Creating Overlays and Page Segments |
InfoPrint's (formerly IBM's®)
AFP Printer Driver is a very useful piece of software that allows
you to create i5/OS
overlays and page segments by "printing" from any PC based
application. Best of all, it is free and available for download at www.infoprintsolutionscompany.com
(click the "software" link). Also, the AFP AS/400 Programming
Sampler which contains useful tools for compiling the overlays
and page segments on your System i.
The sampler.savf was last spotted at ftp://ftp.software.ibm.com/printers/products/as400 Additional information is available from the IBM Software Knowledge Base Document Number 5184341, "Creating AFP Resources Using the IBM AFP Printer Drivers". |
|
| *LINE and *AFPDSLINE Data | Our spooled file conversions do not process spooled files with printer device type *LINE or *AFPDSLINE. However i5/OS allows you to convert these to pure *AFPDS data which can be processed (most conversions). There are two methods for accomplishing this: 1) The printer file's CVTLINDTA() parameter while creating the spooled file, or 2) respooling an existing *LINE or *AFPDSLINE spooled file using CRTAFPDTA/PRTAFPDTA commands. See RedBook SG24-6250 Printing VI for details and examples. | |
| Product | Command Defaults | As with any CL command, you can change the default values of the commands
found in our products. You do this using the i5/OS
Change Command Default (CHGCMDDFT) command. But before you do, there are some gotchas you should be aware of. You WILL lose the change each time a new release of the product is installed, and you COULD lose the change when PTFs are applied to the product. You must then reapply it. As an example, to change the default transform on SpoolMail's SNDSPLMAIL command from *TXT to *PDFA4, run the following: CHGCMDDFT CMD(SNDSPLMAIL) NEWDFT('TRANSFORM(*PDFA4)') |
| CL Trick | Many of our commands accept a variable number of values for a given
parameter. For example, the Send Spool Mail (SNDSPLMAIL) command accepts
up to 300 email addresses on the recipient parameter. When writing CL
programs, the problem of how to code for a variable number of email
addresses without coding the SNDSPLMAIL command multiple times (once
for each address count) arises. The solution is a little known CL trick
for coding "no value" in a variable. "No value"
is represented in CL by '*N'. Consider the following program fragment:
PGM |
|