SNDPCF Problem on AS400

80 pts.
Tags:
AS/400
I currently loaded SNDPCF on a clients as400 following the instructions provided by midrange. (within the programs). I am not getting any error messages but the email is not being sent. When I look at another client (did not set this up) the low level messages look identical to the machine that is not working. I am sure I am missing something on the setup but do not know what to look for since I do not see any errors) Any suggestions? Here are the low level messages being logged when the command is being run. 4 > SNDPCF FILE(HARFILES/A_PAY3) EMAILADDR(DBUSSEY777@AOL.COM) MSG(TEST) FLDNA MES(*COLHDG) 4300 - CHKOBJ OBJ(HARFILES/A_PAY3) OBJTYPE(*FILE) 8200 - CRTPF FILE(QTEMP/SNDPCFOUT) RCDLEN(32766) SIZE(*NOMAX) AUT(*ALL) File SNDPCFOUT created in library QTEMP. Member SNDPCFOUT added to file SNDPCFOUT in QTEMP. 10200 - DSPFFD FILE(HARFILES/A_PAY3) OUTPUT(*OUTFILE) OUTFILE(QTEMP/DSPFFDOUT) 7 records added to member DSPFFDOUT in file DSPFFDOUT in QTEMP. 14900 - CPYTOIMPF FROMFILE(HARFILES/A_PAY3) TOFILE(QTEMP/SNDPCFOUT) MBROPT(*ADD) RCDDLM(*EOR) Ownership of object QCPEXTEMPS in QTEMP type *USRSPC changed. Ownership of object SNDPCFOUT in QTEMP type *USRSPC changed. Ownership of object QACEXFLD12 in QTEMP type *USRSPC changed. Ownership of object Q0T43 in QTEMP type *FILE changed. All records copied from file A_PAY3 in HARFILES. 19900 - CPYTOSTMF FROMMBR('/qsys.lib/qtemp.lib/sndpcfout.file/sndpcfout.mbr') TOSTMF('/QDLS/TEMP/A_PAY3.CSV') STMFOPT(*REPLACE) STMFCODPAG(*PCASCII) Open of member SNDPCFOUT was changed to SEQONLY(*NO). Object copied. 23600 - CALL PGM(QCAEXEC) /* The CALL command contains parameters */ Send distribution completed successfully. 25000 - DLTF FILE(QTEMP/SNDPCFOUT) Object SNDPCFOUT in QTEMP type *FILE deleted. 25200 - DLTDLO DLO('A_PAY3.CSV') FLR(TEMP) 1 objects deleted. - RETURN /* RETURN due to end of CL program */

Software/Hardware used:
rpgle/clle/command I series

Answer Wiki

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

Do you have SMTP setup and a routing to a Mail router/

Discuss This Question: 3  Replies

 
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
  • TomLiotta
    The SNDPCF function isn't a system function. It's something written by a programmer somewhere in the world and made available "for free and as-is". You use it at your own risk, and you support it your self. Any problems are up to you to fix.   The most difficult part of it is that it relies on the system's SNDDST command. That means that all of the required infrastructure must be configured and working for each user of SNDPCF. It can work fine for one user, and it might not work at all for someone else.   You have to do the testing for SNDDST for each user. If a user can't use SNDDST, then that user can't run SNDPCF.   Tom
    125,585 pointsBadges:
    report
  • dab777
    Yes, I am aware that this is a third party product and that all users that use this command need to have a directory entry. I have a directory entry. I also manually ran each element in the command. I am failing on the SNDDST command although I am not receiving an error. I ftp files to and from the iseries but can't seem to get the file to email.  Here is my snddst command that was executed.  I am guessing I am missing something on the system set up.SNDDST TYPE(*DOC) TOINTNET((dbussey777@aol.com)) DSTD(TEST) MSG('cpni file') DOC(A_CPNI.CSV) FLR(TEMP) Send distribution completed successfully.Thanks for any and all help!  
    80 pointsBadges:
    report
  • TomLiotta
    Rickmcd's comment is worthwhile. Have you verified that anyone has even set up SMTP services on this client's system?   SNDDST (and therefore SNDPCF) is not a SMTP function. It's a SNA/DS function. When you get the "Send distribution completed successfully" message, all it means is that the SNA/DS process worked. But from there, a secondary process must provide the transfer over to SMTP. And then the SMTP services must do their work.   The transfer process must be running (with a correct configuration), and SMTP must be running (with a correct configuration). The SNDPCF command can work perfectly; but it won't do any good if the rest of the system isn't paying attention to it. Personally, I wouldn't use SNDPCF if the intended result was outbound SMTP. I'd use SMTP directly and skip all the intermediate stuff.   Tom
    125,585 pointsBadges:
    report

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