BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
JayS
Obsidian | Level 7

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.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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.

View solution in original post

2 REPLIES 2
ballardw
Super User

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.

JayS
Obsidian | Level 7

Ah, makes sense... Thanks...

SAS Innovate 2025: Register Now

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!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 506 views
  • 0 likes
  • 2 in conversation