Skip to main content

Run TSO commands via IKJEFT1B

Project description

batchtsocmd

Run TSO commands via IKJEFT1B with automatic encoding conversion.

Description

batchtsocmd is a Python utility for z/OS that executes TSO commands through IKJEFT1B with automatic ASCII/EBCDIC encoding conversion. It handles SYSIN and SYSTSIN inputs from files, automatically converting them to EBCDIC as needed.

Features

  • Execute TSO commands via IKJEFT1B
  • Automatic ASCII to EBCDIC conversion for input files
  • Optional STEPLIB support
  • Configurable output destinations (SYSTSPRT, SYSPRINT)
  • Verbose mode for debugging

Requirements

  • Python 3.8 or higher
  • z/OS operating system
  • IBM Z Open Automation Utilities (ZOAU)
  • zoautil-py package
  • zos-ccsid-converter package

Installation

Note: This package can only be installed and run on z/OS systems.

pip install batchtsocmd

Usage

Basic Usage

batchtsocmd --systsin systsin.txt --sysin input.txt

With Output Files

batchtsocmd --systsin systsin.txt --sysin input.txt \
            --systsprt output.txt --sysprint print.txt

With STEPLIB and Verbose Output

batchtsocmd --systsin systsin.txt --sysin input.txt \
            --steplib DB2V13.SDSNLOAD --verbose

Command Line Options

  • --systsin PATH - Path to SYSTSIN input file (required)
  • --sysin PATH - Path to SYSIN input file (required)
  • --systsprt PATH - Path to SYSTSPRT output file (optional, defaults to DUMMY)
  • --sysprint PATH - Path to SYSPRINT output file (optional, defaults to stdout)
  • --steplib DATASET - Optional STEPLIB dataset name (e.g., DB2V13.SDSNLOAD)
  • -v, --verbose - Enable verbose output

Notes

  • Input files can be ASCII (ISO8859-1) or EBCDIC (IBM-1047)
  • Encoding is auto-detected via file tags; untagged files are assumed to be EBCDIC
  • Output files will be tagged as IBM-1047
  • If --systsprt is not specified, output goes to DUMMY
  • If --sysprint is not specified, output goes to stdout (tagged as IBM-1047)

License

Apache License 2.0

Author

Mike Fulton

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

batchtsocmd-0.1.5.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

batchtsocmd-0.1.5-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file batchtsocmd-0.1.5.tar.gz.

File metadata

  • Download URL: batchtsocmd-0.1.5.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/34.0 requests/2.32.5 requests-toolbelt/1.0.0 urllib3/2.6.0 tqdm/4.67.1 importlib-metadata/8.7.0 keyring/25.7.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.13.1

File hashes

Hashes for batchtsocmd-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cfd5bf82c83bee369be70cc4556391b95afe8a38b1a933543345ba3a1a6e5366
MD5 23a33b25b748455758171da91b7eb11f
BLAKE2b-256 2ed60de9efa07a84ed166d4328078ee265211a91addbae928b38cda70d458a59

See more details on using hashes here.

File details

Details for the file batchtsocmd-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: batchtsocmd-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.12.1.2 readme-renderer/34.0 requests/2.32.5 requests-toolbelt/1.0.0 urllib3/2.6.0 tqdm/4.67.1 importlib-metadata/8.7.0 keyring/25.7.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.13.1

File hashes

Hashes for batchtsocmd-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 08a94c3a9f032500152b84c9d974c890b4aad1ffb73a90278a5e4e9c79e0c28f
MD5 0fee29de48f93f5191177d077695b95f
BLAKE2b-256 d64d911a8a779abaf90f308fc12ef09e30424bdbb7a12d82a62d7e9c81db4567

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page