Returned result
1 will be returned if the function created the job.
–1 will be returned if the template job was not in a hold or waiting state, or the new job already existed.
–2 will be returned if the job could not be created.
–3 will be returned if an unhandled error occurred.
Examples
The following examples all copy the job called Daily Run to create a new job called New Daily Run to be run just once, straight away: