|
Hi Joel - >What are the pros and cons of running a batch job under a user profile >different from that of the person who submits the job using the USER parm of >SBMJOB? Two things come to mind right away: 1. if you use USER(*JOBD) on the SBMJOB, to pull the user profile from the job description rather than specifying it explicitly: for security levels 30 and down, the user doing the submit only has to have authority to the jobd and does NOT have to have authority to the user profile specified on the jobd. For 40 and up, the user must also have authority to the user profile. Since you are going to be specifying the user profile explicitly on the SBMJOB command, that does not come into play. 2. if the SBMJOB specifies or defaults to MSGQ(*USRPRF), the message queue of the submitter gets used, rather than the message queue of the profile that the job actually runs under. Depending on the circumstances, that may be good or may be bad. If it's bad, you can get around it with a double submit. Submit a job with MSGQ(*NONE) specifying the user profile you want, where that job's only function is to submit the actual job that you want to run. Ken Southern Wine and Spirits of Nevada, Inc. Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind. +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.