PyMVSBatch Manual

--> -->
 
 
TypeError
Python 3.10.12: /usr/bin/python
Mon Jun 30 15:49:14 2025

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/nhaggin/semperubisububi.net/cgi-bin/breadcrumb.cgi in <module>
     55 
     56 
     57 if __name__ == '__main__':
     58     print('Content-Type: text/plain\n\n')
=>   59     genCrumbs()
genCrumbs = <function genCrumbs>
 /home/nhaggin/semperubisububi.net/cgi-bin/breadcrumb.cgi in genCrumbs()
     48                 continue
     49 
=>   50         crumbs.append('<a href="' + uri + '">' + crumb + '</a>')
     51 
     52     print('<div id="crumbs">')
crumbs = [], crumbs.append = <built-in method append of list object>, uri = 'http://www.semperubisububi.net/', crumb = b'Home'

TypeError: can only concatenate str (not "bytes") to str
      args = ('can only concatenate str (not "bytes") to str',)
      with_traceback = <built-in method with_traceback of TypeError object>

1. Getting Python

Go to the Python website and download and install the appropriate version of Python for your operating system.

2. Running the Program

You have your choice of a shell-like command-line interface, or a GUI.

  • For the GUI: invoke the file 'pymvsgui.py'.
  • For the CLI: invoke the file 'pymvscli.py'.

The GUI is fairly self-explanatory, except for the following:

  • Double-clicking on a file in the "JCL Files" box will submit it for fetch.
  • Double-clicking on a job in the "MVS" box will fetch and purge it.
  • Double-clicking on a job in the "Fetched Jobs" box will open it for viewing in a separate window.
  • The 'Put', 'Print', 'Purge', and 'Fetch' buttons will perform their respective operations on a group of highlighted items in their respective listboxes.

Help for the CLI is available from the shell prompt.

3. Configuration File

On startup, PyMVSBatch looks for a file named ".pymvsbatch" in your home directory. If this file does not exist, or you have not defined a HOME environment variable of some sort, or both, it provides the following defaults:

  • Working Directory: wherever you started PyMVSBatch from
  • Editor: MS-DOS edit on DOS/Win32; $VISUAL, $EDITOR, or if nothing else can be found, pico on Un*x

The configuration file has two possible commands:


editor <editor-name>
wd <working-directory>

4. Shell Commands

In the descriptions below:

  • <foo> indicates a required item
  • {foo | bar} indicates a required item with multiple choices
  • [foo] indicates an optional item.

In each case, do not include the grouping symbols when typing commands.

jobs

List jobs currently in the MVS hold queue.

put {file | glob}

Submit a file or group of files to MVS for fetch.

print {file | glob} <printer>

Submit a file or group of files to MVS for print.

fetch

Fetch and purge all outstanding jobs in the hold queue.

purge <jobname>

Purge a job in the hold queue.

cd <directory>

Change the current working directory.

dir [pathname]

Show contents of working directory, or of the specified path.

cleanup

Delete all job output files in the current directory.

user

Prompt for a new username and password to submit under.

{exit | quit | bye}

All three of these quit the program.

5. Bugs

They're probably there, but I haven't found them yet.

6. Features To Be Added

Lots.