Skip to content

/AWS1/CL_BTC=>TERMINATEJOB()

About TerminateJob

Terminates a job in a job queue. Jobs that are in the STARTING or RUNNING state are terminated, which causes them to transition to FAILED. Jobs that have not progressed to the STARTING state are cancelled.

Method Signature

IMPORTING

Required arguments:

IV_JOBID TYPE /AWS1/BTCSTRING /AWS1/BTCSTRING

The Batch job ID of the job to terminate.

IV_REASON TYPE /AWS1/BTCSTRING /AWS1/BTCSTRING

A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the Batch activity logs.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_BTCTERMINATEJOBRSP /AWS1/CL_BTCTERMINATEJOBRSP