The ReportCaster API would probably be the best way to go, but requires knowledge of a lot of additional information about Java as well as how to use the API. Way back when, we were trying to come up with a quick solution, so we just took those values, wrote them out to a file, and then used the dynamic address feature of ReportCaster. This allows you to run a procedure that send the distribution list back to RC. It's in the docs how to do this, but basically here it is:
Output your addresses to a file using some FEX (probably use a -WRITE) or Java procedure
Create metadata for that file
Create a server procedure like the following:
SET HOLDLIST=PRINTONLY
DEFINE FILE dstlist
DEST/A50=DESTINATION_ADDRESS;
END
TABLE FILE dstlist
PRINT
DEST
ON TABLE PCHOLD
END
1. The output field must be named DEST/A50,
2. DESTINATION_ADDRESS is the field that contains the email address, printer IP, or FTP location
3. You must use ON TABLE PCHOLD
We use this for dynamic printing and email (where the user specifies to which printer it should be sent or to whom it should be emailed) and for FTP.
It works well enough that we never bothered to go back and learn the API.
Regards,
Darin
In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat