Previous Topic: JOBCLASS Statement—Assign a Job Class to a JobNext Topic: JOBCRIT Statement—Specify the Evaluation Criteria for a Return String


JOBCOPY Statement—Copy an Existing SAP Job

The JOBCOPY statement copies an existing SAP job with all of its attributes.

Supported Job Type

This statement is required for the SAP Job Copy job type.

Syntax

This statement has the following format:

JOBCOPY JOBCOUNT(count)
     [TARGETJOBNAME(name)]
     [STEPNUM(step)]
JOBCOUNT(count)

Specifies the ID of the job to be copied.

Limits: Up to eight digits

Example: 00458131

TARGETJOBNAME(name)

(Optional) Specifies the name of the target job.

Default: The name of the source job specified in the SAPJOBNAME statement

Limits: Up to 32 valid SAP characters; case-sensitive

STEPNUM(step)

(Optional) Specifies the number of the first step to start copying job data from.

Limits: 0-highest step number

Note: If you specify 0 or 1, all steps are copied.

Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.

Example: Copy an Existing SAP Job

This example defines an SAP Job Copy job that copies the SAPTEST2 job with job count 00458131.

AGENT SAPHTAGENT
JOBCOPY JOBCOUNT(00458131)
SAPJOBNAME SAPTEST2