CL Command Reference - CHGNETJOBE
CL Command List > CHGNETJOBE Reference
Description:
The Change Network Job Entry (CHGNETJOBE) command changes an existing network job entry in the system. The network job entry is used to determine the action taken when an input stream is sent to a user using the Submit Network Job (SBMNETJOB) command.
This entry determines whether the input stream is automatically submitted, placed on the queue of network files for a user, or rejected. The entry also specifies the user profile that is used for checking the authority to the job description referred to in the input stream. There should be one entry for each user or distribution group who submit jobs to the system. There is a network attribute, JOBACN (Job Action), that provides overall control of network job submission; its value must be *SEARCH before the network job table is searched for an action. If the network attribute is *REJECT, all incoming jobs are rejected. If the network attribute is *FILE, all incoming network jobs are saved in the user¡¯s queue of network files regardless of the network job entry.
Each network job entry is identified by the two-part user ID of the sender. When an input stream arrives, the user ID of the sending user is used to find a network job entry. If no entry is found, the second part of the user ID is used to find an entry, using *ANY for the first part. If this search fails, a search is made using *ANY for both parts of the user ID. If no entry is found, the job is rejected.
Restrictions:
1. This command is shipped with public *EXCLUDE authority.
2. The internal value for a node identifier may differ from the characters shown by the CHGNETJOBE command depending on the type of work station (language) you are using. If the byte-string value specified for the FROMUSRID parameter does not match the rules for an internal node identifier value, or if it does not match the internal value for any defined node (ignoring case differences), an error may be reported.
Examples:
CHGNETJOBE FROMUSRID(JOHN SMITH) SBMUSER(ANDERSON)
This command changes the network job entry that is used to determine the action taken for any input stream received from user JOHN SMITH. The option and the message queue in the existing entry are not changed. The user profile that is used to check the authority to the job queues and job descriptions specified in the input stream is changed to ANDERSON.