## zowe › ca7 › update-job-definition › job

Update requirement definition for a job

#### Usage

zowe ca7 update-job-definition job [options]

#### Required Options

- `--job` (string)

  - The name of the job to update

- `--job-type` | `--jt` (string)

  - The type of job. Valid values are: CPU|XPJOB|AGENT

#### Options

- `--execute` (string)

  - Indicates whether to execute this job.
    Valid values are: Y/N

- `--use-jcl-override-library` | `--ujol` (string)

  - Specifies whether to retrieve the JCL from the JCL Override library (JCLID=254) for the next run only (Y or N).
    This field is automatically set back to N the next time the job comes into the request queue

- `--do-not-schedule-before-date` | `--dnsbd` (string)

  - Specifies not to schedule this job before this date (in YYDDD format, or 00000)

- `--do-not-schedule-before-time` | `--dnsbt` (string)

  - Specifies not to schedule this job before this time (in HHMM format)

- `--do-not-schedule-after-date` | `--dnsad` (string)

  - Specifies not to schedule this job after this date (in YYDDD format, or 99999)

- `--do-not-schedule-after-time` | `--dnsat` (string)

  - Specifies not to schedule this job after this time (in HHMM format)

#### CA7 Connection Options

- `--host` | `-H` (string)

  - Host name of the CA7 API service that is running on the mainframe system.

- `--port` | `-P` (number)

  - Port for the CA7 API service that is running on the mainframe system.

- `--user` | `-u` (string)

  - User name for authenticating connections to the CA7 API service that is running on the mainframe system.

- `--password` | `--pass` | `--pw` (string)

  - Password for authenticating connections to the CA7 API service that is running on the mainframe system.

- `--base-path` | `--bp` (string)

  - The base path for your API mediation layer instance. Specify this option to prepend the base path to all resources when making REST requests. Do not specify this option if you are not using an API mediation layer.

- `--protocol` | `-o` (string)

  - Specifies protocol to use for CA7 connection (http or https).

    Allowed values: http, https

#### Profile Options

- `--ca7-profile` | `--ca7-p` (string)

  - The name of a (ca7) profile to load for this command execution.

- `--base-profile` | `--base-p` (string)

  - The name of a (base) profile to load for this command execution.

#### Base Connection Options

- `--reject-unauthorized` | `--ru` (boolean)

  - Reject self-signed certificates.

    Default value: true

- `--token-type` | `--tt` (string)

  - The type of token to get and use for the API. Omit this option to use the default token type, which is provided by 'zowe auth login'.

- `--token-value` | `--tv` (string)

  - The value of the token to pass to the API.

- `--cert-file` (local file path)

  - The file path to a certificate file to use for authentication

- `--cert-key-file` (local file path)

  - The file path to a certificate key file to use for authentication

#### Examples

- Update a CPU type job, TESTJOB1 to be executable:

  - `zowe ca7 update-job-definition job --job TESTJOB1 --job-type CPU --execute Y`