zowe › ca7 › job-definition › create-exclusive-resource
Add Exclusive Resource
Usage
zowe ca7 job-definition create-exclusive-resource [options]
Required Options
-
--job
(string)- Specifies the job name on which the indicated function is performed.
Limits: 1 to 8 alphanumeric characters
- Specifies the job name on which the indicated function is performed.
-
--resource-name
|--rn
(string)- Specifies the resource name being connected to the job.
Limits: 1 to 44 characters, the first character must be non-blank, and no embedded blanks
- Specifies the resource name being connected to the job.
-
--free
(string)- Determines how VRM manages resource availability at job submission and job/step completion.
Valid values are:
A = Specifies the resource is only freed if any step in the job abends (abend or condition code checking)F = Specifies the resource is freed when job ends, either successfully or unsuccessfully. If the step-name parameter is specified, free the resource when the specified step completes, either successfully or unsuccessfullyN = Specifies do not free the resource at successful job completion. The resource can be freed with the PRSCF command. A cancel of the job also frees the resourceY = Specifies to free the resource at successful job completion. If the step-name parameter is specified, free the resource when the specified step completes successfully (does not abend)
- Determines how VRM manages resource availability at job submission and job/step completion.
Options
-
--schid
(string)- (Optional) Specifies the schedule ID (of this job) for which a user requirement is applied. A zero default cannot be specified for one connection and a nonzero schedule ID used for a subsequent connection to the same job with the same user requirement description. An attempt to make such a connection results in an error message.
Default: 0, which indicates that the requirement holds for all schedule IDs
Limits: 1 to 3 numeric characters from 0 through 999
- (Optional) Specifies the schedule ID (of this job) for which a user requirement is applied. A zero default cannot be specified for one connection and a nonzero schedule ID used for a subsequent connection to the same job with the same user requirement description. An attempt to make such a connection results in an error message.
-
--step-name
|--sn
(string)- (Optional) Specifies the resource is freed at the conclusion of the named job step.
Limits: 1 to 8 alphanumeric characters
Notes:The step-name parameter applies to the first occurrence of the stepname that is encountered in the job stream. This includes any reference to the stepname embedded in a PROCThe only valid stepname would be for steps with PGM= coded, not for stepnames executing a PROCIf a job is restarted in a step after this step-name, the resource does not go through free processing until the job completesA step flush condition does not post the step-name process
- (Optional) Specifies the resource is freed at the conclusion of the named job step.
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
-
Creates a job named JOBAA with resource name SCHENV.VARNAME of free type F, step name JS010 and schedule id 23:
zowe ca7 job-definition create-exclusive-resource --job JOBAA --schid 23 --rn SCHENV.VARNAME --free F --sn JS010