Tip

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

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.