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


  • Subject: Re: Read Email from RPG Program
  • From: Patrick Townsend <townsend@xxxxxxxxxxxxxx>
  • Date: Fri, 10 Jul 1998 09:03:59 -0700
  • Organization: Patrick Townsend & Associates, Inc.

Art,

Try using PRTDOC instead of RTVDOC. Specify the output to a flat file.
I've found PRTDOC to work much better in putting a message back into its
original form. 

Patrick

Art Tostaine, Jr. wrote:
> 
> I have email setup on an As/400.  I can receive email from the internet and
> view it using Justmail or a POP client.
> 
> We receive a text file as an attachment to an email.  I would like to run an
> RPG program that can read that attachment and insert it into our database
> file.
> 
> I have used QRYDST to get my docid, then RCVDST to get the doc.  I have
> tried sending the RCVDST to a file and to a folder.  If I send to a folder,
> I then used RTVDOC to get the message into a physical file.   Problem is
> that the data from the message is there but not in fixed length records.  I
> can see the CR-LF's, but I don't want to have to code and around that stuff.
> 
> How can I get the message into a fixed length flat file that I can use in
> RPG?
> 
> CPYFRMSTMF has the option to do this, but I have tried that when receiving
> mail to a userId setup as a Pop3 user (system message store), and that
> looked even worse.
> 
> OF course, I thought this was a no-brainer and have promised my customer
> this function right away.  Keep in mind that the world may end if I don't
> get this solved.
> 
> Art Tostaine, Jr.
> CCA, Inc.
> Parlin, NJ 08859
> 
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---

-- 

Patrick Townsend                       mailto:townsend@patownsend.com
Patrick Townsend & Associates, Inc.    http://www.patownsend.com
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.