08-11-2016 03:42 PM
I am very new to SAS. We have a requirement to attach a file and send in an email to outlook from mainframe. I was able to get the code and send the the files as attachments. however the font I would like to have is Courier new. I am receiving the email with 'Times New Roman' in my outlook. It is because of Outlook setup?
Here is the code I am using.
filename myfile email
to = "xxxxxx"
subject="this is the output file"
attach=("xxx.xxx.xxx" name ="Sample report" ext="zip");
put '* for *';
put '*this is from xxxxxxx job *';
Though I have the PUT statements ending at the same positions, the formatting is not expected.
Please advise where I went wrong.
08-11-2016 03:57 PM
Data _null_ file creation as shown has no font information as it creates text only and the default font for the viewer is likely used. Change the view in the text viewer OR:
To force a specific font you would need to use a file format that includes font information such as RTF (read in Word or similar) or PDF. Use an appropriate ODS destination when creating the file and use an ODS style with the desired font family.