Skip to content

/AWS1/CL_MDC=>LISTJOBS()

About ListJobs

Retrieve a JSON array of up to twenty of your most recently created jobs. This array includes in-process, completed, and errored jobs. This will return the jobs themselves, not just a list of the jobs. To retrieve the twenty next most recent jobs, use the nextToken string returned with the array.

Method Signature

IMPORTING

Optional arguments:

IV_MAXRESULTS TYPE /AWS1/MDC__INTEGERMIN1MAX20 /AWS1/MDC__INTEGERMIN1MAX20

Optional. Number of jobs, up to twenty, that will be returned at one time.

IV_NEXTTOKEN TYPE /AWS1/MDC__STRING /AWS1/MDC__STRING

Optional. Use this string, provided with the response to a previous request, to request the next batch of jobs.

IV_ORDER TYPE /AWS1/MDCORDER /AWS1/MDCORDER

Optional. When you request lists of resources, you can specify whether they are sorted in ASCENDING or DESCENDING order. Default varies by resource.

IV_QUEUE TYPE /AWS1/MDC__STRING /AWS1/MDC__STRING

Optional. Provide a queue name to get back only jobs from that queue.

IV_STATUS TYPE /AWS1/MDCJOBSTATUS /AWS1/MDCJOBSTATUS

Optional. A job's status can be SUBMITTED, PROGRESSING, COMPLETE, CANCELED, or ERROR.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_MDCLISTJOBSRESPONSE /AWS1/CL_MDCLISTJOBSRESPONSE