Hi,
Is it possible to check for a user enrollment in the System Distribution Directory via a CL command?
I thought i would try the ADDDIRE command and monitor for an error stating that the user exists already but that didn't work because the command throws a message id CPD8983 that isn't monitorable, progression of the program in debug when this error is thrown steps right over the monitor statement for it. Maybe because the message is a *DIAG, I'm not sure.
What I'm trying to do is:
I have a program that generates a report and sends it via the SNDSMTPEMM command. Unfortunately, this command needs the directory entry of the user being emailed. Since some or many could end up calling this program, I wanted to check for and add the user running the program, in the program, to avoid hearing "it doesn't work" since I can't display a message on line 24.
(Yes, the message on line 24 issue is still a problem for those of you that offered assistance.)
Mike.
Is it possible to check for a user enrollment in the System Distribution Directory via a CL command?
I thought i would try the ADDDIRE command and monitor for an error stating that the user exists already but that didn't work because the command throws a message id CPD8983 that isn't monitorable, progression of the program in debug when this error is thrown steps right over the monitor statement for it. Maybe because the message is a *DIAG, I'm not sure.
What I'm trying to do is:
I have a program that generates a report and sends it via the SNDSMTPEMM command. Unfortunately, this command needs the directory entry of the user being emailed. Since some or many could end up calling this program, I wanted to check for and add the user running the program, in the program, to avoid hearing "it doesn't work" since I can't display a message on line 24.
(Yes, the message on line 24 issue is still a problem for those of you that offered assistance.)
Mike.
Comment