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:


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:

Swap Homes and Travel the World – Join Home Exchange
Surf the Web Securely with OPEN DNS
IBM i Software Change Management – CMS vs ALM – What’s in a Name?
Want to learn CL Programming?
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Get In Touch

I’m always looking for awesome input, feedback and critique!


Snug CBD

 20% Discount

I have partnered with SNUG CBD givING you Organic CBD
20% discount code "NL20"