creating and e-mailing a db2 report

I would like to create a report which extract data from db2 and e-mail it.

What is the best approach to tackle this ?
RozamundaAsked:
Who is Participating?
 
Kent OlsenConnect With a Mentor Data Warehouse Architect / DBACommented:
Hi Rozamunda,

I'm not aware of any DB2 version having built-in support for generating PDF documents.  But the functionality does exist in PHP and has for quite a while.

Here's an example that was written for PHP version 4.  (PHP is currently at version 5, but the example is still valid.)

  http://php.net/manual/en/pdf.examples-basic.php

You'll need to format the static parts of the page and, assuming that you're returning multiple rows from the database, loop through the returned data an post each row to your report.  And of course this means that you may be printing multiple pages so that will need to be handled, too.


Good Luck,
Kent
0
 
momi_sabagCommented:
which tool were you planing on using to format the report?
this is not something i would post on the db2 forum
0
 
RozamundaAuthor Commented:
i posted it on php forum, this is part of my question, how to create and format pdf report using php and e-mail it
0
 
MurpheyApplication ConsultantCommented:
What platform is DB2 running ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.