On 28-Sep-2015 02:36 -0600, Alejandro M wrote:
> On 23-Sep-2015 09:46 -0600, CRPence wrote:
>> On 23-Sep-2015 02:10 -0600, Alejandro M wrote:
>>>
>>> In our company, we started using SNDSMTPEMM command [...]
>>> cannot specify "From" address [...]
>>
>> [...]
>>
>> Consider intercepting the command invocation using the
>> "Command Exit" feature; modify the command string in a User Exit
>> Program. As I recall, Bruce Vining has written some articles about
>> how to use that feature implemented as an Exit Program (EXITPGM)
>> for a registered exit [see Work With Registration Information
>> (WRKREGINF)].
>>
>> Also, instead of Submit Job (SBMJOB) to start a new process,
>> consider using the effective /switch user/ feature [get profile
>> handle and set user APIs] to establish under which user the request
>> is made.
>>
>
If an effective server job is used, onto which the work is enqueued,
then the switch-user could occur in the server job instead of in the
requesting job. That would similarly avoid the Submit Job, while moving
the switch-user to a job that is not subject to issues such as with End
Request (ENDRQS); a cancel handler can ensure the switch back to the
original user in response to an otherwise unhandled\terminating error or
the end-request.
--
Regards, Chuck