Can anybody help me on using the SNDDST command? I tried to send a physical file to Microsoft Exchange (MS Outlook) and not successful. The file was sent to my Outlook inbox but the file is all ASCII characters. It cannot be read using any text editor.
Before you can use this command, you have to enroll the user or recipient using the command: WRKDIRE. While there make sure you use the F19 SMTP, while there add the persons email address, and on the fifth panel, change: Mail service level to '2' and
change: Preferred address to '3'. Then try sending.
That's because you should copy your phisycal file to a folder or IFS, then you would be able to send it in an email. You may do a CL program an include something like this:
1) CPYTOPCD FROMFILE(LIB/FILE) TOFLR('TEMP') TODOC(FILE.TXT) REPLACE(*YES)
2) SNDDST TYPE(*DOC) TOINTNET(('your@email.com')) DSTD(A) MSG('Message.') DOC(FILE.TXT) FLR('TEMP')
3) DLTDLO DLO(FILE.TXT) FLR('TEMP')
In 1) you can do a CPYTOPCD or CPYTOIMPF to send it as a db file.
Hope this help you.
Regards.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 4  Replies