Problem solve Get help with specific problems with your technologies, process and projects.

Send a physical file from theiSeries 400 to an e-mail address

We are trying to send a physical file from our iSeries 400 to an e-mail address as an attachment. I have success...

using the SNDDST command, but my attachment shows as garbage because it is not converted to ASCII. I would like to make this an iSeries automatic procedure without human intervention. Any ideas?

Write a CL to use the CPYTOSTMF to copy the physical file to a stream file (usually placing the file in the /tmp/ directory). Attach that file and it will be in ASCII format.


The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

This was last published in March 2002

Dig Deeper on iSeries COBOL programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.