Hi I am using the following code to send mails from z/OS to email addresses.My mail datset in z/OS contains special characters like Open Square Bracket and closed square brackets.[,]..but when I receive the mail these special char are converted into some junk characters.I have to use CODESET which understands these special char.How to use those CODESETS in this mail pgm so that special characters also will be sent right in the attachment.
FILENAME MYMAIL EMAIL;
DATA _NULL_;
FILE MYMAIL TO=("mail address")
SUBJECT='TEST MAIL FROM SAS'
ATTACH=("datasetname" EXT='TXT');
PUT 'HI,';
PUT 'ATTACHMENT Report Test Mail Summary';
RUN;