What do you get when you run without the EMAILHOST= option? The HELO name tends to be a red herring -- it can pretty much be anything you want and the email will go through, at least on z/OS systems. You need to look at the SMTP or TCPIP started task to get the actual IP address and name.

You should be able to use whatever package (SDSF, EJES, etc) is used at your site to look at job output; I can't tell you which to use since I don't know your site.

I just noticed you're running SAS 8.2; this is an older release of SAS and I haven't used it in several years. I do know the email component wasn't as good as SAS 9; you need to contact your site SAS support person and discuss your needs with that person. If set up correctly, the site support person probably shows up at the top of the SAS log for every SAS job run.

You may have to contact your site support group for help. The name is from the TCP/IP parameter file that is pointed to by DD name SYSTCPD in the TCP/IP job. There will be a HOSTNAME field and DOMAINORIGIN field. <hostname>.<domainorigin> is the desired server name -- at least it works on my system.

After 8 months, finally there is a solution for this
The trouble was finding the SMTP server address.
Similar to what Robert has mentioned,

Quote:

SYSTCPD in the TCP/IP job

The server address was located in a job called TCPSMTP at our shop.
The job has DD name as //CONFIG & inside the //config DSN there is a IP address something like MAILER 128.2.*.**.
So this is the SMTP address