475 pts.
 Spooled Files sent via SNDDST
Our system runs reports at night to an outq. Upon completion of reports a program goes through and converts the spooled files to PDF and emails using SNDDST and then deletes the spooled files. My problem is that last night for whatever reason the program finished successfully without errors and none of the reports were received. Is there a way to find out where they went? The person running the reports is in the DIRE.

Software/Hardware used:
ASKED: January 24, 2012  10:42 PM
UPDATED: March 17, 2012  5:58 AM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. Michael Tidmarsh   14,000 pts. , Michael Tidmarsh   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Start by running DSPDSTLOG to see what the distribution log says happened. That will get you up to the point where it leaves distribution services and enters the bridge over to SMTP (which is probably what should be used instead of SNDDST).

Depending on what the log says, next steps could be many possible choices.

Tom

 110,115 pts.

 

Thanks Tom. The problem is the email list for the reports have email addresses for various people in the company and the email receiver (server) was down at the time the reports were sent. The logs show they got sent ok but the server never received them because it was down. We brought the receiver back up but there were no reports. We are trying to figure out where they went if the iseries sent them but nothing received them. How would I send reports via email without using SNDDST?

 475 pts.

 

I use Giovanni Perroti’s MIME & Mail.

 5,730 pts.

 

…the server never received them because it was down.

What is “the server”? Is it a SMTP e-mail server? Is it the SMTP server on your AS/400? …a remote server (i.e., one in your network that is intended to be the sender)?

Have the reports arrived yet?

Tom

 110,115 pts.

 

Yes we have an SMTP server on the network. All our reports are sent from the 400 via SNDDST to email addresses on our email server for the company. At the time the reports were processed and sent, the email server was down and never received them but the log on the 400 says they were sent. When the server came back up (several hours later) there were no reports received by anyone. We don’t know where they went.

 475 pts.

 

Yes we have an SMTP server on the network. All our reports are sent from the 400 via SNDDST to email addresses on our email server for the company.

The SNDDST command (by itself) cannot send e-mail to a SMTP server.

Instead, it hands the distributions off to a couple of jobs on your AS/400 that route them to the SMTP server that is running on your AS/400. You can see the jobs on your AS/400 that handle the routing between the two. The names of those jobs are QTSMTPCLTD, QTSMTPBRCL, QTSMTPBRSR and QTSMTPCLTP. If you don’t see those jobs, then the bridge between SNDDST (which is SNA) and SMTP isn’t started.

You will also see the SMTP jobs — QTSMTPSRVD and QTSMTPSRVP. If you don’t see those, then you probably have nothing running that will pass the e=mails over to the “SMTP server on the network”.

Usually, a SMTP server will have configurations set for retries. If a remote server can’t be reached (the network is down or the remote server is down or whatever), then your server will try to deliver the e-mail later. Prompt the CHGSMTPA command on your AS/400 to see what your systems retry values are set for.

The CHGSMTPA command will show other attributes that need to coordinate with the configuration of the “SMTP server on the network”. Since that server was down, you will want to verify that no one changed its rules.

Can you use SNDDST today to send a simple message to any account on your networked SMTP server?

Tom

 110,115 pts.