.st0{fill:#FFFFFF;}

Batch Job change RUNPTY to make it faster 

 December 14, 2015

By  NickLitten

Some Batch jobs take a long time to run. If you have a batch job with the words “trial balance” in the title then its going to take hours… That is a “hashtag internet fact” šŸ˜‰

A common technique to try to give these jobs a little boost is the jobs outer control program to try ti change itself to run a little faster. This is commonly done by reducing the ru priority (so it gets into run state more often than other batch jobs that are waiting to be processed, one bite at a time) or to increase timeslice (so the job stays in the processing state for longer once its being run).

What security setting does IBM i, AS400 or iSeries user need to CHGJOB

Only a user with job control (*JOBCTL) special authority can change the RUNPTY, TIMESLICE, PURGE, or DFTWAIT values.

If you dont have *JOBCTL then the user that is running the “trial balance” will see an error message:

Message . . . . : -CALL AUDITRUN
*NONE Command 12/14/15 09:46:11.744735 QCADRV QSYS 03BA AUDITRUN
To module . . . . . . . . . : AUDITRUN
To procedure . . . . . . . : AUDITRUN
Statement . . . . . . . . . : 5500
Message . . . . : 5500 – CHGJOB JOB(*) RUNPTY(49)
CPF1337 Escape 40 12/14/15 09:46:11.745050 QWTCHGJB QSYS 2F12 AUDITRUN
To module . . . . . . . . . : AUDITRUN
To procedure . . . . . . . : AUDITRUN
Statement . . . . . . . . . : 5500
Message . . . . : 620239/PABOG/AUDT121316 not authorized to change parameters.
 
Fix this by granting the running user:
CHGUSRPRF USER(SOMEBLOKE) SPCAUT(*JOBCTL)

NickLitten


IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Shameless Trekkie, Belligerent Nerd, Englishman Abroad and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and remember: If at first you don't succeed then skydiving probably isn't a hobby you should look into.

Nick Litten

related posts:

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"cff50":{"name":"Main Accent","parent":-1},"a344d":{"name":"Accent Transparent","parent":"cff50"}},"gradients":[]},"palettes":[{"name":"Default","value":{"colors":{"cff50":{"val":"var(--tcb-skin-color-0)"},"a344d":{"val":"rgba(46, 138, 229, 0.85)","hsl_parent_dependency":{"h":210,"l":0.54,"s":0.78}}},"gradients":[]},"original":{"colors":{"cff50":{"val":"rgb(0, 178, 255)","hsl":{"h":198,"s":1,"l":0.5}},"a344d":{"val":"rgba(0, 178, 255, 0.85)","hsl_parent_dependency":{"h":198,"s":1,"l":0.5}}},"gradients":[]}}]}__CONFIG_colors_palette__

Get In Touch

Iā€™m always looking for awesome input, feedback and critique!

>