BookmarkSubscribeRSS Feed
ddddddddd1223
Calcite | Level 5

Hi everybody,

 

I have developed a job in SAS DIS that has a step which sends an email through the utility FILENAME MAILBOX. It succeeds when I run the job by SAS DIS. After, I deployed the job in order to execute it through a .sh file on a Linux system. When I run it in this way, all the activities are completed with success, all except the sending of the email. The version of the server SAS is 9.3.

 

Does anyone know if I have to change the script of the FILENAME MAILBOX, or if I have the specify something in the .sh file?

 

Thank you in advance for your attention.

4 REPLIES 4
Quentin
Super User

Can you post the bit of the log from where it sends the email?  Do you get an error / warning / bad note in that step?

ddddddddd1223
Calcite | Level 5
This is the log, I can't see any warning or error:

NOTE: The file MAILBOX is:
E-Mail Access Device

Message sent
To: 'xxx' 'xxx' 'xxx'
Cc:
Bcc:
Subject: xxx
Attachments:
NOTE: 1 record was written to the file MAILBOX.
The minimum record length was 101.
The maximum record length was 101.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.00 seconds
Quentin
Super User

Interesting.  Looks like SAS thinks all went well.  Do you know, is the server you're running the deployed job on the same server as you run the interactive DI job on?  If not, it's possible they are using different mail servers, and the server with the deployed job has it stuck in a queue on the mail server?  Or check your spam filter?  I don't know much about mail servers.  If SAS says everything went well but I don't get an email, that's when I would call for help from admins to look into the mail server and see what it's doing.

AnandVyas
Ammonite | Level 13
Would you able to check maillog on Linux system if there are any errors?
Are you connected to same system and app-context when you run from DIS?

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 4 replies
  • 1224 views
  • 0 likes
  • 3 in conversation