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

==================================
MORE INFORMATION ON THIS TOPIC
==================================

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.


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.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close