You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug fix to correct job log returining and other edge cases (#688)
* Update zos_job_submit to handle some edge cases and return the job log nearly always
Signed-off-by: ddimatos <dimatos@gmail.com>
* Linting correction
Signed-off-by: ddimatos <dimatos@gmail.com>
* Add changelog fragement for pr 683
Signed-off-by: ddimatos <dimatos@gmail.com>
* Clean up comments in code
Signed-off-by: ddimatos <dimatos@gmail.com>
* Update restructured text for modules and changelog fragment
Signed-off-by: ddimatos <dimatos@gmail.com>
* Add support to check for security exception to job submit module
Signed-off-by: ddimatos <dimatos@gmail.com>
* Add additonal logic for jobs that use typerun=scan
Signed-off-by: ddimatos <dimatos@gmail.com>
* Update chnagelog fragment
Signed-off-by: ddimatos <dimatos@gmail.com>
* Correct run on sentence
Signed-off-by: ddimatos <dimatos@gmail.com>
---------
Signed-off-by: ddimatos <dimatos@gmail.com>
Copy file name to clipboardExpand all lines: docs/source/modules/zos_job_submit.rst
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,9 @@ zos_job_submit -- Submit JCL
16
16
17
17
Synopsis
18
18
--------
19
-
- Submit JCL from DATA_SET , USS, or LOCAL location.
20
-
- Submit a job and optionally monitor for its execution.
21
-
- Optionally wait a designated time until the job finishes.
19
+
- Submit JCL from a data set, USS, or from the controller.
20
+
- Submit a job and optionally monitor for completion.
21
+
- Optionally, wait a designated time until the job finishes.
22
22
- For an uncataloged dataset, specify the volume serial number.
23
23
24
24
@@ -32,7 +32,7 @@ Parameters
32
32
src
33
33
The source file or data set containing the JCL to submit.
34
34
35
-
It could be physical sequential data set or a partitioned data set qualified by a member or a path. (e.g "USER.TEST","USER.JCL(TEST)")
35
+
It could be a physical sequential data set, a partitioned data set qualified by a member or a path. (e.g "USER.TEST","USER.JCL(TEST)")
36
36
37
37
Or a USS file. (e.g "/u/tester/demo/sample.jcl")
38
38
@@ -58,20 +58,20 @@ location
58
58
59
59
60
60
wait
61
-
Configuring wait used by the `zos_job_submit <./zos_job_submit.html>`_ module has been deprecated and will be removed in ibm.ibm_zos_core collection.
61
+
Setting this option will yield no change, it is deprecated. There is no no need to set *wait*; setting *wait_times_s* is the correct way to configure the amount of tme to wait for a job to execute.
62
62
63
-
Setting this option will yield no change, it is deprecated.
63
+
Configuring wait used by the `zos_job_submit <./zos_job_submit.html>`_ module has been deprecated and will be removed in ibm.ibm_zos_core collection.
64
64
65
-
See option ``wait_time_s``.
65
+
See option *wait_time_s*.
66
66
67
67
|**required**: False
68
68
|**type**: bool
69
69
70
70
71
71
wait_time_s
72
-
When *wait* is true, the module will wait for the number of seconds for Job completion.
72
+
Option *wait_time_s* is the total time that module `zos_job_submit <./zos_job_submit.html>`_ will wait for a submitted job to complete. The time begins when the module is executed on the managed node.
73
73
74
-
User can set the wait time manually with this option.
74
+
*wait_time_s* is measured in seconds and must be a value greater than 0 and less than 86400.
75
75
76
76
|**required**: False
77
77
|**type**: int
@@ -100,7 +100,7 @@ volume
100
100
101
101
When configured, the `zos_job_submit <./zos_job_submit.html>`_ will try to catalog the data set for the volume serial. If it is not able to, the module will fail.
102
102
103
-
Ignored for USS and LOCAL.
103
+
Ignored for *location=USS* and *location=LOCAL*.
104
104
105
105
|**required**: False
106
106
|**type**: str
@@ -548,18 +548,18 @@ jobs
548
548
}
549
549
550
550
msg
551
-
Return code resulting from the job submission.
551
+
Return code resulting from the job submission. Jobs that take longer to assign a value can have a value of '?'.
552
552
553
553
|**type**: str
554
554
|**sample**: CC 0000
555
555
556
556
msg_code
557
-
Return code extracted from the `msg` so that it can be evaluated as a string.
557
+
Return code extracted from the `msg` so that it can be evaluated as a string. Jobs that take longer to assign a value can have a value of '?'.
558
558
559
559
|**type**: str
560
560
561
561
msg_txt
562
-
Returns additional information related to the job.
562
+
Returns additional information related to the job. Jobs that take longer to assign a value can have a value of '?'.
563
563
564
564
|**type**: str
565
565
|**sample**: The job completion code (CC) was not available in the job output, please review the job log."
Copy file name to clipboardExpand all lines: docs/source/modules/zos_operator.rst
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,10 +59,12 @@ wait_time_s
59
59
60
60
61
61
wait
62
-
Configuring wait used by the `zos_operator <./zos_operator.html>`_ module has been deprecated and will be removed in ibm.ibm_zos_core collection.
62
+
Configuring wait used by the `zos_operator <./zos_operator.html>`_ module has been deprecated and will be removed in a future ibm.ibm_zos_core collection.
63
63
64
64
Setting this option will yield no change, it is deprecated.
65
65
66
+
Review option *wait_time_s* to instruct operator commands to wait.
67
+
66
68
|**required**: False
67
69
|**type**: bool
68
70
|**default**: True
@@ -76,13 +78,13 @@ Examples
76
78
.. code-block:: yaml+jinja
77
79
78
80
79
-
- name: Execute an operator command to show active jobs
81
+
- name: Execute an operator command to show device status and allocation
80
82
zos_operator:
81
-
cmd: 'd u,all'
83
+
cmd: 'd u'
82
84
83
-
- name: Execute an operator command to show active jobs with verbose information
85
+
- name: Execute an operator command to show device status and allocation with verbose information
84
86
zos_operator:
85
-
cmd: 'd u,all'
87
+
cmd: 'd u'
86
88
verbose: true
87
89
88
90
- name: Execute an operator command to purge all job logs (requires escaping)
@@ -91,12 +93,12 @@ Examples
91
93
92
94
- name: Execute operator command to show jobs, waiting up to 5 seconds for response
93
95
zos_operator:
94
-
cmd: 'd u,all'
96
+
cmd: 'd a,all'
95
97
wait_time_s: 5
96
98
97
99
- name: Execute operator command to show jobs, always waiting 7 seconds for response
0 commit comments