It required the building of a modified SBMJOB command, that would strip
all libraries off the liblist, and store the request-to-be-submitted
with all relevant info like liblist and adopting user in a keyed dataq.
It would then submit a call to a pgm that would fetch the dataqueue
entry by key and use the info to set adoption for the original user,
rebuild the liblist, and execute whatever was in the request data. This
has been working since day 1 without a single problem.
It took me about three months to design, develop, test and implement the
mechanism, where the majority of the time was spent on cracking the
problem of running batch jobs.
Regards,
René
--
"GV" <babu...@att.net> schreef in bericht
news:f22f3bb1.04092...@posting.google.com...
You can try the method René suggests, or if it should be quick and dirty
create your own SBMJOB command with a Command Processing Program that adopts
the required authority and uses (inside) the "real" SBMJOB.
Four lines of code and a security exposure (if you do it wrong).
Jan Willem
Regards,
Create a routing program that adopts the needed authority. Here's a minimum
routing program that will work:
pgm
call qcmd
endpgm
Add a routing entry to a new or existing subsystem to invoke your routing
program.
This is the absolute minimal implementation. QCMD fetches the request data,
typically the CMD() parameter from SBMJOB command and runs it. Because your
adopting program is calling QCMD, you have adopted authority for the batch
job.
If you need to adopt authority from various profiles, create more routing
programs, and routing entries with routing data specified. Use routing data
on SBMJOB command to select the appropriate routing program.
You might want to add some security features. Who will be allowed to run a
job using your new routing program? What commands will your routing program
be willing to run?
"GV" <babu...@att.net> wrote in message
news:f22f3bb1.04092...@posting.google.com...
For excample, If you are running interactive adopt and need to have
submitted jobs adopt also, you can have the first program that runs in batch
adopt, but secure it from *PUBLIC use, and only authorize the end user (or
Group) to that program.
"GV" <babu...@att.net> wrote in message
news:f22f3bb1.04092...@posting.google.com...
"Brian" <no.spam.for@me> wrote in message
news:41520d51$0$80691$a186...@newsreader.visi.com...
Your suggestion worked perfectly. Created a group with *use
authority to the programs
GV