PLUNGER clears the clogs and makes PIPEs run clean!
Plunger is a CMS command that, combined with the CMS Pipelines Runtime Distribution, makes CMS Pipelines work on the VM/370 Community Edition, a derivative of IBM's VM/370 Release 6 system.
The CMS Pipelines Runtime Distribution is graciously provided free of charge by IBM under a specific set of terms, which you must adhere to if you use it. See Licenses below for more information.
Many years ago, John Hartmann of IBM Denmark created a tool he called "CMS Pipelines" (or just "Pipelines" or "Pipes"). Some years later, IBM allowed its customers to obtain Pipelines, and the VM community, centered around the SHARE user group, and with tremendous work by Princeton University's Melinda Varian, adopted it with gusto. Even more years later, IBM and Princeton reached an agreement to allow Princeton to re-distribute certain specific Pipelines files and to allow those who received them to further re-distribute them. This is called the CMS Pipelines Runtime Library Distribution, and the files include everything a CMS user would need to create and run Pipelines programs. Quite a few times in the following years, IBM and Princeton updated the CMS Pipelines Runtime Library Distribution to a then-more-recent version, and for the last time on 2015-07-30. At some time along the way, the distribution point moved from a Princeton web and FTP site to one operated by Marist University.
CMS Pipelines was designed with certain baseline assumptions, including that the CMS operating system was at least VM/SP. It was carefully built to widely support VM releases newer than that, and rarely removed support for older releases. The VM/370 Community Edition is based on VM/370 Release 6, which lacks quite a few of those assumptions. Plunger fills those gaps. Building upon facilities that many people added to VM/370 R6 over the years (e.g., in the "Six-pack" and "Community Edition" releases), Plunger makes Pipelines believe it is running in VM/SP CMS, and provides services that Pipelines expects to exist there.
- CMS Pipelines Runtime Library Distribution (see Installation below)
- VM/370 Community Edition 1.1.2
- or a VM/370 R6 derivative with at least the following updates:
- CMS update HRC015DS - Prevent UPDATE from failing when the filesystem API is updated
- CMS update HRC105DS - Extend FSTD/STATEFST for greater compatibility with VM/SP
- Probably more if you want to run the unit tests.
- or a VM/370 R6 derivative with at least the following updates:
- Additional CMS updates:
- CMS update HRC405DS - NUCEXT and SUBCOM macro and function fixes. (Required both to build and to run Plunger.)
- CMS update HRC422DS - NUCXTEXT occasionally causes DMSLIO109S. (Optional, If you want to run the unit tests.)
- CMS update HRC103DS - BALR to TYPLIN through ADMSCWR. (Required by the CMS and COMMAND stages, and maybe others).
- bREXX version 1.2.1 or higher - support for in-storage Rexx programs, and for long host commands. (Required by the Rexx-related stages.)
-
Get the distribution files from the CMS Pipelines Runtime Library Distribution, or from the copy at the Internet Archive. You want the "All executables" and "All documentation" archive files,
RUNTIME VMARCandRTDOC VMARCrespectively. -
Get the Plunger package from GitHub, and unzip it to get
PLUNGER MEMO(a copy of this file) andPLUNGER VMARC. -
Upload the
RUNTIME VMARCandPLUNGER VMARCfiles to CMS in binary as RECFM F and LRECL 80. -
Extract the
PIPELINE MODULEfile from theRUNTIME VMARCpackage:VMARC UNPACK RUNTIME VMARC fm PIPELINE MODULE fm (OLDDATE -
Extract the
PLUNGER MODULEfile from thePLUNGER VMARCpackage:VMARC UNPACK PLUNGER VMARC fm PLUNGER MODULE fm (OLDDATE -
Optionally see the Pipelines documentation note below about documentation.
-
Optionally build and deploy the CMS Pipelines HELP files. See the Pipelines HELP note for the process to do so.
-
Optionally rebuild
PLUNGER MODULEfrom source:VMARC UNPACK PLUNGER VMARC fm * * fm (OLDDATE MKPLUNGE ( DEBUG * or MKPLUNGE ( NODEBUG
After installation, it is easy to use CMS Pipelines. Issue the PLUNGER ENABLE command to load Plunger and Pipelines into memory, and then issue
PIPE commands exactly like the Pipelines documentation says. To unload
Plunger and Pipelines, issue the NUCXDROP PLUNGER command. To unload
only Pipelines, issue the PLUNGER DISABLE command.
For example:
plunger enable
Ready;
pipe literal Hello World! | console
Hello World!
Ready;
Plunger is relatively small - about 12KB in memory. Pipelines is not - it consumes 1.1MB when loaded. There are no options to reduce either of these, so you may need to increase the storage size of some of your CMS virtual machines to use Pipelines.
PLUNGER MODULE is a small self-loading nucleus extension. It sets itself up
in memory the first time a PLUNGER command is issued.
PLUNGER DEBUG [ON|OFF]- display and possibly change the debugging status.PLUNGER DISABLE- disable all the services and unload CMS Pipelines from memory.PLUNGER ENABLE- enable all the services and load and initialize CMS Pipelines.PLUNGER VERSION- display the version number and build date and time.
PLUNGER also responds to ABEND and NUCXDROP situations via the SERVICE
nucleus extension option. When dropped, Plunger also drops Pipelines.
CMS Pipelines has extensive documentation. All of it is available in the
CMS Pipelines Runtime Library Distribution, in the RTDOC VMARC file.
Unfortunately, that file is too large to store as-is on VM/370 CMS. The
PLUNGER VMARC package includes script files for Microsoft Windows
(splitdoc.bat) and Linux (splitdoc.sh) that will read RTDOC VMARC and
create two subset files. The scripts require vma from Leland Lucius's
excellent VMARC Utility for Windows, Linux,
and MacOS, which frankly every CMS user ought to have. The RTDOC1 VMARC
package splitdoc creates contains documentation that will probably only be
useful on a non-CMS system (i.e., PDF and Postscript files) - in particular,
Hartmann's "CMS Pipelines User's Guide and Reference" (as PIPELINE.PDF).
The RTDOC2 VMARC package contains all the other files, and can be uploaded to
CMS and unpacked.
CMS Pipelines has a collection of almost 1,400 HELP files (approximately 15
3350 cylinders), documenting each command (HELPCMS), stage (HELPPIPE),
subcommand (HELPPIPC), syntax element (HELPPIPS), and message (HELPMSG).
All of it is available in the CMS Pipelines Runtime Library Distribution, in
the RUNTIME VMARC package, but it must be extracted and installed to be
useful on VM/370. The process to do so is documented at the
CMS Pipelines Runtime Distribution website,
(or the copy at
the Internet Archive)
and the following recommended procedure is based upon it:
-
Extract the necessary files from the
RUNTIME VMARCandPLUNGER VMARCpackages:VMARC UNPACK RUNTIME VMARC fm HLIB2HIN REXX fm (OLDDATE VMARC UNPACK RUNTIME VMARC fm PIPELINE HELPLIB fm (OLDDATE VMARC UNPACK RUNTIME VMARC fm PIPGHELP EXEC fm (OLDDATE VMARC UNPACK RUNTIME VMARC fm PIPGHELP REXX fm (OLDDATE VMARC UNPACK RUNTIME VMARC fm PIPMENU REXX fm (OLDDATE VMARC UNPACK PLUNGER VMARC fm PIPE HELPTASK fm (OLDDATE -
Make a minor change to
PIPGHELP EXEC, because the VM/370 Community EditionHELPcommand doesn't support SCRIPT-like control words:- Insert the following line after original line 65:
'nfind .|', /* No control words */
-
Make a few minor changes to
PIPGHELP REXX, because the VM/370 Community EditionHELPcommand doesn't supportHELPMENUfiles or related help:- Insert the following line after original line 55:
wmenu='' /* VM/370 CE doesn't have menu files */
- Insert the following line after original line 50:
append = '' /* VM/CE doesn't have "related" */
- Insert the following lines after original line 33:
/* Some don't have a mode number. Dunno why. */ if \datatype(mode_number, 'W') then do parse var in . fn ft systems mode_number = '' end
-
Extract the HELP-file data from
PIPELINE HELPLIB:PLUNGER ENABLE PIPE HLIB2HIN | > PIPELINE HELPIN fm FIXED -
Generate the HELP files on your A-disk:
PIPGHELP % NOTEXT ERASE PIPELINE HELPIN fm -
Make the generated files available to the VM/370 HELP system:
RENAME * HELPCMS A = HELP$CM = COPY HELP HELPTASK U = = A COPY PIPE HELPTASK A HELP HELPTASK A (APPEND -
Move the generated files and the updated
HELP HELPTASKfile to a minidisk where CMS users can access them (e.g., the CMSMAINT 19DHELP disk). -
Optionally, delete all the files extracted in the first step:
ERASE HLIB2HIN REXX fm ERASE PIPELINE HELPLIB fm ERASE PIPGHELP EXEC fm ERASE PIPGHELP REXX fm ERASE PIPMENU REXX fm ERASE PIPE HELPTASK fm
Plunger assumes that Pipelines generally works correctly, and that only certain issues exist and need correction. Those issues are almost entirely in the "system interface" portions of Pipelines - specifically, the device driver stages, and other areas where Pipelines issues commands to the system environment (in this case, CMS, CP, or Rexx). All of the device driver stages have been tested, and either found to work fine, or issues have been logged and fixed. In the process of testing the device drivers, no filter stages were found to require support from Plunger, although no significant effort was made to test all filter stages.
There is only one known incompatibility with between Pipelines and
Pipelines with Plunger, involved in how the main disk I/O drivers (<,
>, >>, <MDSK, >MDSK, and >>MDSK) function. As CMS Pipelines notes
in the documentation for these stages:
The fast interface to the file system is bypassed if the bit X'10' is on in offset X'3D' of the FST that is exposed by the FSSTATE macro. Products that compress files on the fly or in other ways intercept the file system macros should turn on this bit to ensure that CMS/TSO Pipelines uses documented interfaces only.
Unfortunately, there are cases where even setting that bit (which Plunger does) is not sufficient. Thus Plunger does what Pipelines suggests in a companion note:
Use
diskslowif<mdskfails to operate.
Plunger forces them all to be handled by the MDSKSLOW stage (the minidisk
implementation of DISKSLOW). This causes one incompatibility:
- The
>and>MDSKstages will now always erase their output file before starting, if it already exists, even if the stage exits with a non-0 return code. The correct behavior would be to check to see if the file exists, and if so, "a utility file is written. When this file has been written successfully, the original file is erased and the utility file renamed to the specified name." This might cause a problem for sophisticated pipelines, but it's a small edge-case, and unlikely to cause problems in general.
In addition to stages that Pipelines does not intend to work on CMS (e.g.,
<MVS), the following stages are known not to work, and may never work, as
they require major facilities that VM/370 CE CMS and CP do not have:
<OE<SFS>OE>SFS>>OE>>SFS>>SFSSLOWACIGROUPADRSPACEAFTFSTALSERVDATECONVERTDEVINFODFSORTDIAGE4DISKIDFBAREADFBAWRITEFILEDESCRIPTORFILETOKENHELPHOSTBYADDRHOSTBYNAMEHOSTIDHOSTNAMEIMMCMDMAPMDISKMDISKBLKMDSKUPDATEREXXVARSSFSBACKSFSDIRECTORYSFSRANDOMSFSUPDATESQLSQLCODESSQLSELECTSTARMONSTARMSGSTARSYSSTFLESTSITCPCLIENTTCPDATATCPLISTENTRACKREADTRACKWRITETRFREADUDPWAITDEVXABXEDITXMSG
The Pipelines distribution comes with two assembler-code macro libraries,
FPLGPI MACLIB and FPLOM MACLIB, which are shipped in the RUNTIME VMARC
archive. Both are in the post-VM/370 LIBPDS file format, which VM/370 CMS
cannot process. Luckily, Pipelines can read them. If you want to use them,
you will need to convert them yourself. The following pipeline will do the
job:
Arg Fn . /* FPLGPI or FPLOM. */
'PIPE (end ? name FIXMAC)',
'?listpds' Fn 'MACLIB' , /* Get the list of members. */
'|chop 8' , /* Just the names, please. */
'|mems: fanout' , /* Pass them around. */
'|spec /*COPY/ 1 word 1 nextword' , /* "name" -> "*COPY name". */
'|pad 80' , /* Make it a card. */
'|merge: faninany' , /* Receive member contents. */
'|> FIXMAC COPY A F 80' , /* Write temp file for MACLIB.*/
'?mems:' , /* Receive member names. */
'|members' Fn 'MACLIB' , /* Extract the members' data. */
'|merge:' /* Send to FANINANY. */The you just:
PLUNGER ENABLE
FIXMAC FPLname
MACLIB GEN newfilename FIXMAC
ERASE FIXMAC COPYPlunger provides a collection of services that CMS Pipelines requires and that the VM/370 Community Edition does not offer. That includes:
ABNEXITmacro functions - justABNEXIT SETandABNEXIT CLR, and only capturing program-check interruptions.CMSCALLSVC - basic support to mapCMSCALLmacros to CMS's SVC 202.DMSFNSMCfunction - a (presumed) synonym forFINISESPIESVC - basic support to map the MVSESPIEmacro to the OS/360 (and CMS)SPIEmacro.FORM=Edisk I/O macro functions - just remapping plists, not expanding limits. Specifically,EPOINT,ESTATE,ESTATEW,RDBUF, andWRBUF.- EXEC-in-storage functions - the
EXECLOAD,EXECDROP,EXECMAP, andEXECSTATcommands and a front-end to theEXECcommand. If you have installed CMS update HRC100DS, these will not be enabled, and the HRC100DS versions will be used instead. GLOBALVcommand - a very limited implementation, just enough for Pipelines' use cases.LINERDfunction - basic support to mapLINERDmacros intoRDTERMequivalents.NUCXLOADcommand - a nearly-complete re-implementation of the VM/SP5 CMSNUCXLOADcommand, including relocation support, but only forPIPELINE MODULE. This has not been tested with any other MODULE.WAITRDfunction - map an undocumented use of theRDTERMmacro toEDIT=NO.- Several CPU instructions that Pipelines depends on but that are not part of
System/370. These are implemented as their necessity is discovered. The
list currently includes:
AHI(A7xA) - Add Halfword Immediate, fully implemented.BRC(A7x4) - Branch Relative Conditional, fully implemented.BSM(0B) - Branch and Set Mode, implemented to always set 24-bit mode.CHI(A7xE) - Compare Halfword Immediate, fully implemented.LAE(51) - Load Address Extended, implemented exactly as LA (41).STAM(9B) - Store Access Multiple, implemented to always store 0 ("home space").
Plunger also modifies several parts of the CMS Pipelines code in memory,
altering them while it loads PIPELINE MODULE as a nucleus extension. In
general, Plunger tries to avoid this technique, but there are things that
simply can't be "faked out" with shims and remappings, or that are trivial
enough to make this the better choice of techniques. All these patches, and
the code that applies them, are in the PLUZAP ASSEMBLE source file, in a form
that anyone familiar with the CMS ZAP command should understand. The current
list of ZAPs is:
ZAP001- Suppress message "FPLINY1291I The field ADMSCWR in NUCON is incorrect; found 00F8C158; display of ABEND information may be in jeopardy."ZAP003- RelocateNUCMFLAGin CMSNUCON. See s390guy/vm370#97 for details.ZAP004- Set the "VM/SP" bit in the CPDIAG x'0000'response.ZAP005- PIPELINE uses a filesystem workarea calledFVS, but it expects a newer version than VM/370 CE's.ZAP006- PIPELINE callsRENAME ... ( NOUPDIR, but VM/370 R6 expects( NOUPDIRT.ZAP007- BypassDMSEXCwhen calling Rexx stages (pre-dates CMS update HRC100DS, and is not applied if HRC100DS is installed on CMS).ZAP008- Force theCMSandCOMMANDstages down the CMS 5.5 code path, because we've implemented everything it needs, and the pre-5.5 path fails.ZAP009- Make the main disk I/O drivers (<,>,>>,<MDSK,>MDSK, and>>MDSK) go throughMDSKSLOWinstead, because the "fast" interface uses EDF interfaces not present in, and not likely to be added to, VM/370 CMS.ZAP010- Fix the only apparent genuine Pipelines bug detected so far in this project, which caused a program check in theNUCEXTstage if the nucleus extension name was not in upper case.ZAP011- Prevent "Assert failure 00000182" inSPECS.
The Plunger automated tests are written in
RexxUnit, and a copy of the
REXXUNIT EXEC driver is included in the source code. To run them, simply
install Plunger, with the REXXUNIT EXEC, the WITHSTEM TEXT, and the
* REXXUNIT files, and enter REXXUNIT. See the
RexxUnit README
for more information.
The Plunger 0.0.n levels were focused on just getting Pipelines to work at
all in VM/370 CMS. Plunger level 0.1.7 successfully demonstrated simple and
multistream pipelines with only limited device driver usage. The 0.1.n
levels which followed were focused on getting the most important device
drivers working - console, stack, and disk I/O, and on supporting stages
written in Rexx (with bREXX release 1.2.0 providing required Exec-in-Storage
support). The 0.2.n levels, which were developed after the 0.1.27 level was
uploaded to GitHub, were focused on finishing testing and repair of the device
drivers. Plunger level 0.2.38 completed that effort. Level 0.9.0 was the
first public announcement.
The CMS Pipelines Runtime Distribution and Plunger are released under separate and very different licenses. Use of either of them is bound by its specific license.
See http://vm.marist.edu/~pipeline/tandc.html (or the copy at the Internet Archive) for the specific terms and conditions related to distributing the CMS Pipelines Runtime Library Distribution. The remainder of this section is provided as a courtesy for Plunger users, and does not supersede, modify, or replace those terms and conditions.
Melinda Varian of Princeton University, in her paper "Pipe Dreams - What's New in CMS/TSO Pipelines" presented at the 1996 VM Workshop (or the copy at the Internet Archive), wrote this (pp. 2-3):
III. DISTRIBUTION OF THE CMS PIPELINES RUNTIME LIBRARY
In May, 1993, SHARE submitted a requirement to IBM stating, "Applications written in CMS Pipelines should be permitted to ship the Pipelines runtime library with the applications, to unlicensed parties. This ability exists for most languages." Three months later, IBM closed that requirement as "announced", but did not say how one could go about actually shipping Pipes with a software product without getting sued.
IBM and Princeton recently signed a software license agreement that allows Princeton to redistribute the December, 1995, version of the CMS Pipelines runtime library royalty-free to anybody and that also allows people who get the version from Princeton to redistribute it themselves royalty-free. In other words, we can all now package a recent version of the CMS Pipelines runtime library with our software products, including shareware, so there is no reason not to use the recent version in one's software. Note, however, that there is no official support for this version. You are likely to get help if you report any problems in one of the Pipelines fora, but there is no guarantee of that.
The CMS Pipelines runtime library distribution is available via the World Wide Web (http://PUCC.Princeton.EDU/~pipeline/) or by anonymous FTP from PUCC.Princeton.EDU (cd anonymous.376). You will find a README FIRST file that stipulates the conditions, which are primarily that you must not remove the IBM copyright notice and that IBM retains title to the CMS Pipelines runtime library being distributed. (An excerpt from this README file is in Appendix A.) The files that make up the runtime library include the MODULE, the help library, and softcopy documentation (in LIST3820 and BOOK format). There is no separate message repository, as the messages are included in the MODULE file. This version of the runtime library contains function well beyond what was shipped in CMS 12, but it does not include MVS-specific function or IBM Internal-Use-Only function, such as the
patternstage.The document contained in the BOOK and LIST3820 files is what is known familiarly as "the real Pipes book", the CMS/TSO Pipelines Guide and Reference written by the author of Pipelines, John Hartmann. It provides complete documentation for the version of Pipelines shipped in CMS 12 and in BatchPipeWorks.
Melinda continued in Appendix A of that paper, with what appears to be a verbatim quote of the terms and conditions (see p. 64):
CMS PIPELINES RUNTIME LIBRARY DISTRIBUTION This distribution of the CMS Pipelines runtime library has been made available in response to SHARE requirement SOCMSX93003, which requested IBM's permission for software vendors (including shareware vendors) to package a current version of the CMS Pipelines runtime library with their software products in order that they could use new features of "Pipes" in their products.
Questions concerning this distribution may be addressed to Melinda Varian (Melinda@Princeton.EDU).
Terms and Conditions
IBM and Princeton University have signed a Software License Agreement (Number 07227), which contains the following provisions:
3.1 IBM hereby grants to Princeton a nonexclusive, royalty free, worldwide right to use, reproduce, copy, execute, display, perform, prepare and/or have prepared derivative works to the Licensed Works, to distribute internally and/or externally for any purpose whatsoever and to sublicense (royalty free only) and authorize others to do and/or exercise any, some or all of the foregoing, including the right to further sublicense others. The rights granted in this Section 3.1 are hereinafter called "Rights Granted".
4.0 Princeton acknowledges that title to the Licensed Works shall remain with IBM and that any copies of the Licensed Works or portions thereof made by Princeton in accordance with the Rights Granted hereunder shall include an IBM copyright notice thereon. The notice shall be affixed to all copies or portions thereof in such manner and location as to give reasonable notice of IBM's claim of copyright and shall be in conformity with all applicable regulations or affixation prescribed by the United States Register of Copyright. Princeton agrees to inform any licensee and/or sublicensee will conform to the requirements of this Section.
Appendix A: Description of Licensed Works
Code Files: NXPIPE MODULE, PIPELINE HELPLIB
Documentation: PIPELINE LIST3820, PIPELINE BOOK
Support
There is no official support for the code and documentation included in this distribution. If you experience a problem with the code or documentation, please report it on one of the Pipelines fora:
- PROB PIPELINE on VMSHARE
- PIPELINE CFORUM on IBMLink
- CMSPIP-L LISTSERV list
You will likely receive assistance, but there are no guarantees.
Melinda Varian retired several years ago, and you probably shouldn't try to contact her at that Princeton email address.
Plunger itself is free, unencumbered, and unwarranteed software and is
released into the public domain. The specific licensing text Plunger uses to
do this is The Unlicense, which is contained as file
UNLICENS MEMO in the PLUNGER VMARC package, and which you can and should
read in its (brief) entirety.