Skip to content

/AWS1/CL_DSY=>CANCELTASKEXECUTION()

About CancelTaskExecution

Stops an DataSync task execution that's in progress. The transfer of some files are abruptly interrupted. File contents that're transferred to the destination might be incomplete or inconsistent with the source files.

However, if you start a new task execution using the same task and allow it to finish, file content on the destination will be complete and consistent. This applies to other unexpected failures that interrupt a task execution. In all of these cases, DataSync successfully completes the transfer when you start the next task execution.

Method Signature

IMPORTING

Required arguments:

IV_TASKEXECUTIONARN TYPE /AWS1/DSYTASKEXECUTIONARN /AWS1/DSYTASKEXECUTIONARN

The Amazon Resource Name (ARN) of the task execution to stop.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_DSYCANCELTASKEXECRSP /AWS1/CL_DSYCANCELTASKEXECRSP