Creating a text file from AS/400 for a purchase order

Tags:
AS/400
AS/400 Text File
IFS
I would like to create a text file from the AS400, I need to be able to have a header line followed by line details. It's a Purchase Order which I need to email as a text file. What is the best way of doing this?

Answer Wiki

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

I would do it with an RPG program writing to a “flat” file — one field type alpha.
The RPG program builds each line and writes it to the file.
You can transfer the file to your ifs and e-mail it unless you have a better e-mail method.

Discuss This Question: 1  Reply

 
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
  • Cwc
    I recommend just writing to a regular externally described file, and then copying that database file to the IFS with the CPYTOIMPF (copy to import file) command. That way, your RPG program doesn't have to anything extra, since a lot of the functionality you'd want is already built into CPYTOIMPF. You can chose for the fields in the record to be delimited, or just be in a fixed record length, among several other options. You could proceed with emailing from there, depending on the level of automation you'd want (such as if it's a one time or recurring process).
    4,290 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