Ask the Expert

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 first published in March 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: