April 30, Ted Holt. Here are four easy ways to add PDF generation to your programming. If you specify a directory, the system will invent a name for the generated stream file. If you specify a stream file name, that stream file must not exist at run time. By way of example, consider a simple report. First, create the printer to generate a PDF.
|Published (Last):||1 April 2019|
|PDF File Size:||17.74 Mb|
|ePub File Size:||3.18 Mb|
|Price:||Free* [*Free Regsitration Required]|
April 30, Ted Holt. Here are four easy ways to add PDF generation to your programming. If you specify a directory, the system will invent a name for the generated stream file. If you specify a stream file name, that stream file must not exist at run time.
By way of example, consider a simple report. First, create the printer to generate a PDF. This method is slightly longer. It requires you to copy the spooled file to a temporary database file, and from there to a stream file. Notice the use of first-character forms control. The previous methods all produce PDFs that look like the reports. The program reads a database file into which a spooled file has been copied and writes to a stream file. This version uses a printer control data structure to control spacing and skipping.
There you have it. If you want to integrate PDF into your programming, you can easily do so. Transform Services. Post this story to del. Do you need area code information? Do you need ZIP Code information? Do you need city name information? Do you need county information? Do you need a nearest dealer locator system? We can HELP! Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!
You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. WorksRight Software, Inc. Phone: Fax: E-mail: software worksright. Web and mobile apps for IBM i.
More IT Jungle Resources:. Leave a Reply Cancel reply. Search for:. Volume 14, Number 10 -- April 30, Subscribe To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter. Search Search for:. Sorry, your blog cannot share posts by email. Method 1: Write directly to PDF. Method 2: Copy a spooled file to PDF. Method 4: Read and reformat the spooled file.
September RSS Feed. SCS and. SCS or. LINE in the spooled file attributes; however, this does not work on. AFPDS or. IPDS spooled files.
Copy Spooled File (CPYSPLF)
I have times when a user will request that a report be emailed to them, rather than printed and sent to them via the inter company mail. The easiest way would be to create a PDF file from the spool file and then email it to the requestor. There are many third party tools that allow you to be able to convert a spool file to PDF, but how can I do it just using native IBM i features? The method I am going to describe can only be used IBM i servers with either version 6. Before you can do what I will describe in this post you need to check if you have the necessary licensed program, Transform Services, installed on your IBM i. I rely on viewing the list of licensed programs to see if it is there.
PDF = Pretty Darn Fine!
Check here to start a new keyword search. Search support or find a product: Search. Search results are not available at this time. Please try again later or use one of the other support options on this page.
The default is to convert the spooled data to a plain text format. Blank lines are inserted so that the stream file gives the same appearance as the spooled file. This allows further use of spooled data to be handled by PC or Internet applications. An option exists to allow the spooled file to be converted to a format than can be re-converted to a spooled file on another system.