× 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.



Yep, I was just going to ask the same thing. I bet it's 65535.

On Tue, Jul 20, 2021 at 5:57 PM Christopher Bipes <
chris.bipes@xxxxxxxxxxxxxxx> wrote:

You mentioned that the system CCSID's were the same. What about the job
CCSID?

Chris Bipes
Director of Information Services
CrossCheck, Inc.

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Thomas Garvey
Sent: Tuesday, July 20, 2021 2:19 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Help with Klement's SMTP routines

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?

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.