I am using OpsNav to send AS/400 reports to users via e-mail using the following procedure: With both OpsNav and Explorer windows opened, I drag and drop selected reports to c:my temp files. The reports are then in .txt format on my C drive. I then attach that reportxxx.txt to an e-mail. The problem is when we print these reports the pagination is lost. Is there a better way to do this without losing the page format?
When you drag and drop a spool file to your desk top using OPS Nav all it does is a simple translation to a .TXT file. In order to maintain page breaks you would have to write a program that copies the spool file to a database file along with forms control characters:
Specifies that the first character of every record contains one of the ANSI forms control codes listed in the CL Reference manual.
And then read these control characters using this information to determine line spacing and page breaks.
Personally, I have not taken the time to develop a program like this because there are several software developers who have already done this. It is cheaper for me to spend a few bucks purchasing their software than to have my company pay me to develop something from scratch.
My personal choice is the spool manipulation products from Gumbo Software. The one I think you would find to be extremely useful is SpoolMail. Using their command interface, it is possible to e-mail a Spoolfile to a list of addresses in several different formats RTF, PDF and TIFF, not only TXT.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Dig Deeper on iSeries programming commands
Related Q&A from Ken Graap
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ... Continue Reading
The only option to correct damage preventing file journaling is to use the RCLSTG command. Continue Reading
IBM's iSeries Backup and Recovery manual answers many questions related to system backup and disaster recovery. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.