× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



We're using Scott Klement's SMTP and SNDMAILxxx stuff to generate emails with attachments from inside an RPGLE program on the IBM i. The attachments are pdf and/or CSV's. It's worked for years.

Now it's failing (at a client site) at a step that does the following...

1.    Create a temp file in the IFS using the external procedure '_C_IFS_tmpnam'
2.    Uses CPY to copy the PDF or CSV file (also in the IFS) into the temp file from step 1
3.    Creates another temp file in the IFS and opens it, marked as CCSID 819
4.    Closes the file from step 3
5.    opens the file from step 3 again, in text mode (presumably so data will be automatically translated?)

This is where it fails, at step 5, saying 'Convert error.'

This works on my servers (v7r3 and v5r4 and v5r3), but not on a client's server (v7r3).

There doesn't appear to be any problems with the original pdf file. It can be opened, viewed, attached to emails using the client separate email server. The system CCSID is the same on both our servers.
It just can't pass this conversion step to be attached to an email generted inside the SNDMAILxxx program.

Any ideas?

Best Regards,


Thomas Garvey



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.