Save an iSeries spool file as an HTML document -- revisited

Save the spool file as HTML and you'll be able to view the report on the Web, or burn the file to a CD-ROM.

This Content Component encountered an error

You Can View User Feedback To This Tip

To save a spooled file from the iSeries as HTML, transfer the spool file into a folder on a PC as a .txt file. Add the HTML code that changes the file to HTML. Save the edited .txt file as an .HTML file. Now you can view the report in a Web browser, and or burn the file to a CD-ROM to archive it.

Put this at the top of the .txt file:

<html>
<head> <title> your spool file Report Name < /head>
</title>
<pre>

At the end of the .txt file add:

</pre>
</body>
</html>

Save the .txt file as a .htm. Re-open the file with your web browser.

Here is an example:

<html>
<head> <title> Sales - First Quarter 2003 & 2004 </head>
</title>
<pre>

SALES JAN FEB MAR

2003 100K 250K 500K
2004 300K 175K 150K

</pre>
</body>
</html>

__________________________________________________________

Cut and paste the example into Notepad. Save the file as Sales.htm. Re-open the file through a Web browser.

USER FEEDBACK TO THIS TIP

  • Hello and thanks for the tip. I'd like to add an option: In iSeries Access (I think 4.5 and above) you can choose HTML as the output device, choose parameters from the details and you will get the HTML table with your fields —Yoni Tehan

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.

This was first published in July 2003

Dig deeper on iSeries CL programming

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close