Skip to content

Commit 5977f0f

Browse files
committed
Automated commit to update documentation
1 parent b9b5884 commit 5977f0f

23 files changed

+513
-306
lines changed

_sources/ibm_zos_core/docs/source/filters.rst.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@
55
Filters
66
=======
77

8-
Filters in Ansible are from Jinja2, and are used to transform data inside
9-
a template expression. The templates operate on the Ansible controller, and not
10-
on the target host. Therefore, filters execute on the controller as they augment
11-
the data locally.
12-
13-
Jinja2 ships with many filters as does Ansible, and also allows users to add
14-
their own custom filters.
8+
Filters are used to transform data inside a template expression. The templates
9+
operate on the Ansible controller, not on the managed node. Therefore,
10+
filters execute on the controller as they augment the data locally.
1511

1612
The **IBM z/OS core collection** includes filters and their usage in sample
1713
playbooks. Unlike collections that can be identified at the top level using the

_sources/ibm_zos_core/docs/source/modules/zos_archive.rst.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,15 +342,15 @@ Examples
342342
# Simple archive
343343
- name: Archive file into a tar
344344
zos_archive:
345-
path: /tmp/archive/foo.txt
345+
src: /tmp/archive/foo.txt
346346
dest: /tmp/archive/foo_archive_test.tar
347347
format:
348348
name: tar
349349

350350
# Archive multiple files
351351
- name: Compress list of files into a zip
352352
zos_archive:
353-
path:
353+
src:
354354
- /tmp/archive/foo.txt
355355
- /tmp/archive/bar.txt
356356
dest: /tmp/archive/foo_bar_archive_test.zip
@@ -360,15 +360,15 @@ Examples
360360
# Archive one data set into terse
361361
- name: Compress data set into a terse
362362
zos_archive:
363-
path: "USER.ARCHIVE.TEST"
363+
src: "USER.ARCHIVE.TEST"
364364
dest: "USER.ARCHIVE.RESULT.TRS"
365365
format:
366366
name: terse
367367

368368
# Use terse with different options
369369
- name: Compress data set into a terse, specify pack algorithm and use adrdssu
370370
zos_archive:
371-
path: "USER.ARCHIVE.TEST"
371+
src: "USER.ARCHIVE.TEST"
372372
dest: "USER.ARCHIVE.RESULT.TRS"
373373
format:
374374
name: terse
@@ -379,7 +379,7 @@ Examples
379379
# Use a pattern to store
380380
- name: Compress data set pattern using xmit
381381
zos_archive:
382-
path: "USER.ARCHIVE.*"
382+
src: "USER.ARCHIVE.*"
383383
exclude_sources: "USER.ARCHIVE.EXCLUDE.*"
384384
dest: "USER.ARCHIVE.RESULT.XMIT"
385385
format:

_sources/ibm_zos_core/docs/source/modules/zos_copy.rst.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ dest
9191

9292
If ``dest`` is a nonexistent USS file, it will be created.
9393

94+
If ``dest`` is a new USS file or replacement, the file will be appropriately tagged with either the system's default locale or the encoding option defined. If the USS file is a replacement, the user must have write authority to the file either through ownership, group or other permissions, else the copy will fail.
95+
9496
If ``dest`` is a nonexistent data set, it will be created following the process outlined here and in the ``volume`` option.
9597

9698
If ``dest`` is a nonexistent data set, the attributes assigned will depend on the type of ``src``. If ``src`` is a USS file, ``dest`` will have a Fixed Block (FB) record format and the remaining attributes will be computed. If *is_binary=true*, ``dest`` will have a Fixed Block (FB) record format with a record length of 80, block size of 32760, and the remaining attributes will be computed. If *executable=true*,``dest`` will have an Undefined (U) record format with a record length of 0, block size of 32760, and the remaining attributes will be computed.
@@ -787,9 +789,9 @@ Notes
787789

788790
For supported character sets used to encode data, refer to the `documentation <https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/resources/character_set.html>`_.
789791

790-
`zos_copy <./zos_copy.html>`_ uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; Co:Z SFTP is not supported. In the case of Co:z SFTP, you can exempt the Ansible userid on z/OS from using Co:Z thus falling back to using standard SFTP.
792+
This module uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; SCP (secure copy protocol) and Co:Z SFTP are not supported. In the case of Co:z SFTP, you can exempt the Ansible user id on z/OS from using Co:Z thus falling back to using standard SFTP. If the module detects SCP, it will temporarily use SFTP for transfers, if not available, the module will fail.
791793

792-
Beginning in version 1.8.x, zos_copy will no longer attempt to autocorrect a copy of a data type member into a PDSE that contains program objects. You can control this behavior using module option executable that will signify an executable is being copied into a PDSE with other executables. Mixing data type members with program objects will be responded with a (FSUM8976,./zos_copy.html) error.
794+
Beginning in version 1.8.x, zos_copy will no longer attempt to correct a copy of a data type member into a PDSE that contains program objects. You can control this behavior using module option ``executable`` that will signify an executable is being copied into a PDSE with other executables. Mixing data type members with program objects will result in a (FSUM8976,./zos_copy.html) error.
793795

794796

795797

_sources/ibm_zos_core/docs/source/modules/zos_fetch.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Notes
204204

205205
For supported character sets used to encode data, refer to the `documentation <https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/resources/character_set.html>`_.
206206

207-
`zos_fetch <./zos_fetch.html>`_ uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; Co:Z SFTP is not supported. In the case of Co:z SFTP, you can exempt the Ansible userid on z/OS from using Co:Z thus falling back to using standard SFTP.
207+
This module uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; SCP (secure copy protocol) and Co:Z SFTP are not supported. In the case of Co:z SFTP, you can exempt the Ansible user id on z/OS from using Co:Z thus falling back to using standard SFTP. If the module detects SCP, it will temporarily use SFTP for transfers, if not available, the module will fail.
208208

209209

210210

_sources/ibm_zos_core/docs/source/modules/zos_job_submit.rst.txt

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ zos_job_submit -- Submit JCL
1616

1717
Synopsis
1818
--------
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.
19+
- Submit JCL in a data set, USS file, or file on the controller.
20+
- Submit a job and monitor for completion.
2221
- For an uncataloged dataset, specify the volume serial number.
2322

2423

@@ -58,9 +57,9 @@ location
5857
5958

6059
wait
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.
60+
Setting this option will yield no change, it is disabled. There is no need to set *wait*; setting *wait_times_s* is the correct way to configure the amount of time to wait for a job to execute.
6261

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.
62+
This option will be removed in ibm.ibm_zos_core collection version 1.10.0
6463

6564
See option *wait_time_s*.
6665

@@ -333,6 +332,8 @@ Notes
333332
.. note::
334333
For supported character sets used to encode data, refer to the `documentation <https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/resources/character_set.html>`_.
335334

335+
This module uses `zos_copy <./zos_copy.html>`_ to copy local scripts to the remote machine which uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; SCP (secure copy protocol) and Co:Z SFTP are not supported. In the case of Co:z SFTP, you can exempt the Ansible user id on z/OS from using Co:Z thus falling back to using standard SFTP. If the module detects SCP, it will temporarily use SFTP for transfers, if not available, the module will fail.
336+
336337

337338

338339

@@ -689,24 +690,46 @@ jobs
689690
}
690691
691692
msg
692-
Return code resulting from the job submission. Jobs that take longer to assign a value can have a value of '?'.
693+
Job status resulting from the job submission.
694+
695+
Job status `ABEND` indicates the job ended abnormally.
696+
697+
Job status `AC` indicates the job is active, often a started task or job taking long.
698+
699+
Job status `CAB` indicates a converter abend.
700+
701+
Job status `CANCELED` indicates the job was canceled.
702+
703+
Job status `CNV` indicates a converter error.
704+
705+
Job status `FLU` indicates the job was flushed.
706+
707+
Job status `JCLERR` or `JCL ERROR` indicates the JCL has an error.
708+
709+
Job status `SEC` or `SEC ERROR` indicates the job as encountered a security error.
710+
711+
Job status `SYS` indicates a system failure.
712+
713+
Job status `?` indicates status can not be determined.
693714

694715
| **type**: str
695-
| **sample**: CC 0000
716+
| **sample**: AC
696717
697718
msg_code
698-
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 '?'.
719+
The return code from the submitted job as a string.
699720

700721
| **type**: str
701722
702723
msg_txt
703-
Returns additional information related to the job. Jobs that take longer to assign a value can have a value of '?'.
724+
Returns additional information related to the submitted job.
704725

705726
| **type**: str
706-
| **sample**: The job completion code (CC) was not available in the job output, please review the job log."
727+
| **sample**: The job JOB00551 was run with special job processing TYPRUN=SCAN. This will result in no completion, return code or job steps and changed will be false.
707728
708729
code
709-
Return code converted to an integer value (when possible). For JCL ERRORs, this will be None.
730+
The return code converted to an integer value when available.
731+
732+
Jobs which have no return code will return NULL, such is the case of a job that errors or is active.
710733

711734
| **type**: int
712735

_sources/ibm_zos_core/docs/source/modules/zos_ping.rst.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,22 @@ Examples
4040

4141

4242

43+
Notes
44+
-----
4345

46+
.. note::
47+
This module is written in REXX and relies on the SCP protocol to transfer the source to the managed z/OS node and encode it in the managed nodes default encoding, eg IBM-1047. Starting with OpenSSH 9.0, it switches from SCP to use SFTP by default, meaning transfers are no longer treated as text and are transferred as binary preserving the source files encoding resulting in a module failure. If you are using OpenSSH 9.0 (ssh -V) or later, you can instruct SSH to use SCP by adding the entry ``scp_extra_args="-O"`` into the ini file named ``ansible.cfg``.
4448

4549

4650

51+
See Also
52+
--------
53+
54+
.. seealso::
55+
56+
- :ref:`ansible.builtin.ssh_module`
57+
58+
4759

4860

4961
Return Values

_sources/ibm_zos_core/docs/source/modules/zos_script.rst.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@ Notes
296296

297297
For supported character sets used to encode data, refer to the `documentation <https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/resources/character_set.html>`_.
298298

299-
This module uses `zos_copy <./zos_copy.html>`_ to copy local scripts to the remote machine.
300-
301-
`zos_copy <./zos_copy.html>`_ uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; Co:Z SFTP is not supported. In the case of Co:z SFTP, you can exempt the Ansible userid on z/OS from using Co:Z thus falling back to using standard SFTP.
299+
This module uses `zos_copy <./zos_copy.html>`_ to copy local scripts to the remote machine which uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; SCP (secure copy protocol) and Co:Z SFTP are not supported. In the case of Co:z SFTP, you can exempt the Ansible user id on z/OS from using Co:Z thus falling back to using standard SFTP. If the module detects SCP, it will temporarily use SFTP for transfers, if not available, the module will fail.
302300

303301
This module executes scripts inside z/OS UNIX System Services. For running REXX scripts contained in data sets or CLISTs, consider issuing a TSO command with `zos_tso_command <./zos_tso_command.html>`_.
304302

_sources/ibm_zos_core/docs/source/modules/zos_tso_command.rst.txt

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,27 +55,34 @@ Examples
5555
.. code-block:: yaml+jinja
5656

5757

58-
- name: Execute TSO commands to allocate a new dataset
58+
- name: Execute TSO commands to allocate a new dataset.
5959
zos_tso_command:
60-
commands:
61-
- alloc da('TEST.HILL3.TEST') like('TEST.HILL3')
62-
- delete 'TEST.HILL3.TEST'
60+
commands:
61+
- alloc da('TEST.HILL3.TEST') like('TEST.HILL3')
62+
- delete 'TEST.HILL3.TEST'
6363

64-
- name: Execute TSO command list user TESTUSER to obtain TSO information
64+
- name: Execute TSO command List User (LU) for TESTUSER to obtain TSO information.
6565
zos_tso_command:
66-
commands:
67-
- LU TESTUSER
66+
commands:
67+
- LU TESTUSER
6868

69-
- name: Execute TSO command to list dataset data (allow 4 for no dataset listed or cert found)
69+
- name: Execute TSO command List Dataset (LISTDSD) and allow for maximum return code of 4.
7070
zos_tso_command:
71-
commands:
72-
- LISTDSD DATASET('HLQ.DATA.SET') ALL GENERIC
73-
max_rc: 4
71+
commands:
72+
- LISTDSD DATASET('HLQ.DATA.SET') ALL GENERIC
73+
max_rc: 4
7474

7575
- name: Execute TSO command to run a REXX script explicitly from a data set.
7676
zos_tso_command:
77-
commands:
78-
- EXEC HLQ.DATASET.REXX exec
77+
commands:
78+
- EXEC HLQ.DATASET.REXX exec
79+
80+
- name: Chain multiple TSO commands into one invocation using semicolons.
81+
zos_tso_command:
82+
commands: >-
83+
ALLOCATE DDNAME(IN1) DSNAME('HLQ.PDSE.DATA.SRC(INPUT)') SHR;
84+
ALLOCATE DDNAME(OUT1) DSNAME('HLQ.PDSE.DATA.DEST(OUTPUT)') SHR;
85+
OCOPY INDD(IN1) OUTDD(OUT1) BINARY;
7986

8087

8188

_sources/ibm_zos_core/docs/source/modules/zos_unarchive.rst.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,14 +362,14 @@ Examples
362362
# Simple extract
363363
- name: Copy local tar file and unpack it on the managed z/OS node.
364364
zos_unarchive:
365-
path: "./files/archive_folder_test.tar"
365+
src: "./files/archive_folder_test.tar"
366366
format:
367367
name: tar
368368

369369
# use include
370370
- name: Unarchive a bzip file selecting only a file to unpack.
371371
zos_unarchive:
372-
path: "/tmp/test.bz2"
372+
src: "/tmp/test.bz2"
373373
format:
374374
name: bz2
375375
include:
@@ -378,7 +378,7 @@ Examples
378378
# Use exclude
379379
- name: Unarchive a terse data set and excluding data sets from unpacking.
380380
zos_unarchive:
381-
path: "USER.ARCHIVE.RESULT.TRS"
381+
src: "USER.ARCHIVE.RESULT.TRS"
382382
format:
383383
name: terse
384384
exclude:
@@ -388,7 +388,7 @@ Examples
388388
# List option
389389
- name: List content from XMIT
390390
zos_unarchive:
391-
path: "USER.ARCHIVE.RESULT.XMIT"
391+
src: "USER.ARCHIVE.RESULT.XMIT"
392392
format:
393393
name: xmit
394394
format_options:
@@ -404,14 +404,16 @@ Notes
404404
.. note::
405405
VSAMs are not supported.
406406

407+
This module uses `zos_copy <./zos_copy.html>`_ to copy local scripts to the remote machine which uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; SCP (secure copy protocol) and Co:Z SFTP are not supported. In the case of Co:z SFTP, you can exempt the Ansible user id on z/OS from using Co:Z thus falling back to using standard SFTP. If the module detects SCP, it will temporarily use SFTP for transfers, if not available, the module will fail.
408+
407409

408410

409411
See Also
410412
--------
411413

412414
.. seealso::
413415

414-
- :ref:`zos_unarchive_module`
416+
- :ref:`zos_archive_module`
415417

416418

417419

@@ -420,14 +422,14 @@ Return Values
420422
-------------
421423

422424

423-
path
424-
File path or data set name unarchived.
425+
src
426+
File path or data set name unpacked.
425427

426428
| **returned**: always
427429
| **type**: str
428430
429431
dest_path
430-
Destination path where archive was extracted.
432+
Destination path where archive was unpacked.
431433

432434
| **returned**: always
433435
| **type**: str

_sources/ibm_zos_core/docs/source/plugins.rst.txt

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,33 @@
55
Plugins
66
=======
77

8-
Plugins that come with the **IBM z/OS core collection** augment Ansible's core
8+
Plugins that come with the **IBM z/OS core collection** complement Ansible's core
99
functionality. Ansible uses a plugin architecture to enable a rich, flexible
1010
and expandable feature set.
1111

1212
Action
1313
------
1414

15-
* ``zos_ping``: Manages the REXX source transferred to the z/OS managed node for
16-
`zos_ping`_.
17-
* ``zos_copy``: Used to `copy data`_ from the controller to the z/OS managed
18-
node.
19-
* ``zos_fetch``: Used to `fetch data`_ from the z/OS managed node to the
20-
controller.
21-
* ``zos_job_submit``: Used to `submit a job`_ from the controller and optionally
22-
monitor the job completion.
15+
Action plugins integrate local processing and local data with module functionality.
16+
Action plugins are executed by default when an associated module is used; no additional
17+
user action is required, this documentation is reference only.
2318

24-
.. _normal:
25-
https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/action/normal.py
26-
.. _zos_ping:
27-
modules/zos_ping.html
28-
.. _copy data:
19+
* `zos_copy`_: Used to copy data from the controller to the z/OS manage node.
20+
* `zos_fetch`_: Used to fetch data from the z/OS managed node to the controller.
21+
* `zos_job_submit`_: Used to submit a job from the controller to the z/OS manage node.
22+
* `zos_ping`: Used to transfer the modules REXX source to the z/OS managed node.
23+
* `zos_script`: Used to transfer scripts from the controller to the z/OS manage node.
24+
* `_zos_unarchive`: Used to transfer archives from the controller to the z/OS manage node.
25+
26+
.. _zos_copy:
2927
modules/zos_copy.html
30-
.. _fetch data:
28+
.. _zos_fetch:
3129
modules/zos_fetch.html
32-
.. _submit a job:
30+
.. _zos_job_submit:
3331
modules/zos_job_submit.html
34-
32+
.. _zos_ping:
33+
modules/zos_ping.html
34+
.. _zos_script:
35+
modules/zos_script.html
36+
.. _zos_unarchive:
37+
modules/zos_unarchive.html

0 commit comments

Comments
 (0)