SAS EG: 7.15 HF7 (7.100.5.6177) (32-bit)
Having issues coding several *.xlsx files located on my laptop for attachment to a SAS generated email using EG, we have migrated to Office 365.
Any advice on how to have the SAS Code identify and attach the file to the Email?
/* Lets Try These Off Of My Laptop */
Attach = 'C:\Users\xxxx\OneDrive - xxxx\Documents\Tableau_9\MasterInventory\FilesForMailing\Acctname_MatchStatus.xlsx'
SAS Log ERROR Below:
NOTE: The file MYMAIL is:
E-Mail Access Device
ERROR: Error opening attachment file C:\Users\xxxx\OneDrive - xxxx\Documents\Tableau_9\MasterInventory\FilesForMailing\Acctname_MatchStatus.xlsx.
Looks like SAS is looking for the files on the bolded location string below.
ERROR: Physical file does not exist, /sasconfig/ADHOC/SAS94/Lev4/SASApp/C:\Users\xxxx\OneDrive -
xxxx\Documents\Tableau_9\MasterInventory\FilesForMailing\Acctname_MatchStatus.xlsx.
NOTE: The SAS System stopped processing this step because of errors.
Thanks in advance for any help.
The /sasconfig/ADHOC/SAS94/Lev4/SASApp/ indicate that SAS is looking on the SERVER running SAS, not your local computer. Your server does not see or have access to your local drive (i.e. C: ) that you are attempting to use. You will need to place the files in a location that the server sees. That may mean uploading them to the server or placing them in another location that you and the server share.
Talk to your SAS admin about options for where the data might reside.
The /sasconfig/ADHOC/SAS94/Lev4/SASApp/ indicate that SAS is looking on the SERVER running SAS, not your local computer. Your server does not see or have access to your local drive (i.e. C: ) that you are attempting to use. You will need to place the files in a location that the server sees. That may mean uploading them to the server or placing them in another location that you and the server share.
Talk to your SAS admin about options for where the data might reside.
Ah, makes sense... Thanks...
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.