Transferring AS/400 spool files and emailing to a relevant address

350790 pts.
Tags:
AS/400
Spool files
A question emailed to us We have a situation where a number of client have requested a way of emailing Debtor Statements from As/400 spool file. Within the spool file entry there could be any number of statements. We are able to include the Email address of each debtor within each individual statement. We are looking for a way of transferring the spool file and them emailing each statement to the relevant email address.

Answer Wiki

Thanks. We'll let you know when a new response is added.

There are various system APIs available to help in this area. A general overview of what is available can be found in the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/print1.htm”>i5/OS Information Center</a>.

Some of the system support is directly targeted to the e-mailing of spooled files and/or <i>subsets</i> of spooled files. One example is <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/xpsf400email.htm”>the Mapping Exit Program</a>support which allows you to route/distribute a report (along with attributes such as subject, encryption, etc). This relies however upon information in the spool file to direct the system processing. In the case of this exit and sending <i>subsets</i> of the spool file, the use of the DDS keyword STRPAGGRP (or similiar support) is needed. If you wanted the <i>entire</i> spool file sent, the USRDFNDTA attribute of the print file could be used, but that isn’t your current request.

To take an arbitrary spooled file and then parse it with the result being individual statements to be e-mailed you are most likely looking at having to supply your own processing program. The alternative would be modifying the program and print file currently being used to generate your debtor statements such that PSF/400 can recognize the individual debtor statements.

I hope this helps,
Bruce Vining
<a href=”http://www.brucevining.com/”>http://www.brucevining.com/</a>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

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

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

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

Thanks! We'll email you when relevant content is added and updated.

Following