SNDDST is the lowest common denominator for sending out an email.
I am passing a number of parameters into a CLLE program and building the *LMSG command.
Because this will be running at other locations I want to pass in the User Profile parameter so only one profile has to be set up with a directory entry no matter the user profile of the batch job the command will be executed from.
https://www-01.ibm.com/support/knowl.../cl/snddst.htm
User identifier (USRID)
Specifies which user ID and user ID address should be associated with the request.
*CURRENT
You are performing the request for yourself.
user-ID
Specify another user's user ID or your user ID. You must have been given permission to work on behalf of another user or have *ALLOBJ authority.
user-ID-address
Specify another user's address or your address. You must have been given permission to work on behalf of another user or have *ALLOBJ authority.
The manual says USRID is a two part entry USRID(USRID SYSTEM) like the directory entry. But when I pass in a string and populate like USRID(&USERID) I get the following types of errors.
Here I passed in a cut and paste of the Directory entry with two blanks between the user and system name.
Value 'MFASSIST ' for USRID exceeds 8 characters.
List item value for parameter USRID required.
Error found on SNDDST command.
Here I used a single space between the user and system name.
Value 'MFASSIST S' for USRID exceeds 8 characters.
List item value for parameter USRID required.
If I only pass the user profile name and not the system part...
List item value for parameter USRID required.
Error found on SNDDST command.
What is the correct way to populate this parameter.??? (other than *CURRENT)
Thanks.
I am passing a number of parameters into a CLLE program and building the *LMSG command.
Because this will be running at other locations I want to pass in the User Profile parameter so only one profile has to be set up with a directory entry no matter the user profile of the batch job the command will be executed from.
https://www-01.ibm.com/support/knowl.../cl/snddst.htm
User identifier (USRID)
Specifies which user ID and user ID address should be associated with the request.
*CURRENT
You are performing the request for yourself.
user-ID
Specify another user's user ID or your user ID. You must have been given permission to work on behalf of another user or have *ALLOBJ authority.
user-ID-address
Specify another user's address or your address. You must have been given permission to work on behalf of another user or have *ALLOBJ authority.
The manual says USRID is a two part entry USRID(USRID SYSTEM) like the directory entry. But when I pass in a string and populate like USRID(&USERID) I get the following types of errors.
Here I passed in a cut and paste of the Directory entry with two blanks between the user and system name.
Value 'MFASSIST ' for USRID exceeds 8 characters.
List item value for parameter USRID required.
Error found on SNDDST command.
Here I used a single space between the user and system name.
Value 'MFASSIST S' for USRID exceeds 8 characters.
List item value for parameter USRID required.
If I only pass the user profile name and not the system part...
List item value for parameter USRID required.
Error found on SNDDST command.
What is the correct way to populate this parameter.??? (other than *CURRENT)
Thanks.
Comment