How do I send a spool file as an attachement using the SNDDST command?

5 pts.
Tags:
Application development
AS/400
CLP
DataCenter
Email
RPG
Does anyone know how i can send a spool file as an attachment using the SNDDST command?

Answer Wiki

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

There are a number of steps that you need to do to achieve this:

1) Copy the spool file to a database file using the CPYSPLF command.

2) Move the file to an IFS folder using the CPYTOPCD command.

3) Use the SNDDST command to send it as a *DOC type message. For example:

SNDDST TYPE(*DOC) TOINTNET((&PRIMAIL) (&CC1MAIL *CC)) +
DSTD(‘Email Subject’) MSG(‘Email message text…’) +
DOC(&FILE) FLR(‘IFS_folder/path’)

There’s a document you may find useful on our site at http://www.astradyne-uk.com/docs/14-02001.pdf

All the best

Jonathan

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
  • RREXPST
    I came across a free program called MIMEMAIL at www-922.ibm.com/mmail/start . After installing this you can send all diffrent types of files from the iseries. It was very easy to set up and get started. Scott Troxell R & R Express
    0 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