Problem solve Get help with specific problems with your technologies, process and projects.

Little-known end job command provides big help

Have you ever tried to end a job that would not seem to end simply by canceling the job, even with a OPTION(*Immed)...

command? I have been unable to do this more that a few times. Sometimes a job just will not flush out of a subsystem. Once, this caused me to end TCP/IP, and the other time it caused me to IPL.

No more. There is a little-know command on the AS/400, or iSeries, titled ENDJOBABN. For those who don't know what that means, the command stands for END JOB ABNORMAL. You need to know the job name, number and user of the job that will not end. Usually the job will flush out of the system within one to three minutes of executing this command. This command hopefully will not be needed often -- but if you need it, it can be a lifesaver.

To comment on this tip, e-mail us at

Reader comments

From Donna Olsen:
Warning on EndJobAbn -- Use this command only as a last resort. I've had situations where this command was used, then the next IPL was abnormal & took an unusually long time to complete. (Unless IBM has corrected this situation.)

From Alex More:
There is a requirement that the job must have been normally *ENDed for at least 10 minutes before ENDJOBABN will be accepted.

From William Albert:
As a caution, after using ENDJOBABN, the system value QABNORMAL (?) will be set on. The next IPL and startup programs checking this value will need to be considered.

From Les Pearson:
ENDJOBABN is not a good command to use, as it has an effect on the next IPL of your machine. It alters the last power down system value to *abnormal.

From Scott Forstie:
ENDJOBABN use should be done with care and as a last resort. Having the abnormal condition set ON for a machine will produce side effects. The next IPL will not only take longer to complete, but it also will not allow any pending apply PTFs to be applied. A second IPL will be needed to get those PTFs applied. Prompt on the command and then choose PF1 = Help and then PF2 Extended Help to view the usage information.

Dig Deeper on RPG iSeries programming