Discussion:
How can I contribute?
(too old to reply)
John Murray john.ar.murray@gmail.com [hercules-390]
2018-06-11 10:40:10 UTC
Permalink
Raw Message
Hello. First, my apologies if this is the wrong venue for this. But I am a newbie and I’m not really sure where I should post stuff.

I’ve written a couple of scripts that make life with zOS and Hercules a bit easier for me. I’ve been playing with Hercules and zOS for a while, but I don’t really know my way around the community, so what I’ve built may already be widely available. Apologies for that as well.

My first script, first written in Perl and then rewritten in Python, uses the FTP interface in zOS to submit jobs from your local environment to JES2 and then get the SYSOUT back in a file and display it in an edit session. The command looks like this from the command line:


506> submit.py -h
usage: submit.py [-h] [-d] [-l] [-w seconds] [-u userid] [-p password] [-s hostname] JCLFile

Submit a job to Z/OS, wait for it to end and get the output back

positional arguments:
JCLFile JCL file to submit

optional arguments:
-h, --help show this help message and exit
-d Run the command in debug mode
-l Save the listing file
-w seconds Seconds to sleep before checking for job completion
-u userid Userid to sign-in to zOS with
-p password Password
-s hostname Hostname of host to submit job to

Userid and password will be obtained from environment variables ZOSUSER and
ZOSPSWD if defined. Hostname will be obtained from environment variables
ZOSHOST if defined

I first wrote the script in Windows, where I used to run it in Cygwin, a Unix/Linux work-alike shell. Nowadays I run it unchanged in MacOS.

Like most of you I imagine, I was a mainframe guy (MVS, VM & VSE), in my case, more than a few years ago. I hadn’t seen zOS in a couple of decades and then I spent some time at the local IBM lab where I was tasked with finding ways to move data between DB2 running on zOS and DB2 running on LUW. Anyway, when I saw it again I was mostly appalled with the old ISPF UI; I wanted to use Unix (or Linux) and I wanted to be able to use the edit tools I was familiar with (in my case XEmacs). So I started off by writing this script. Again like you, I have more than a few bits of JCL that I use to run processes and discover stuff (IDCAMS, TSO batch, utilities, compilers, etc) and with this script I can prep them in a local editor, submit them and get the SYSOUT back in an easy to read and manipulate environment.

One more script that I’ll share uses the Hercules utilities dasdseq, for displaying sequential datasets, and dasdcat for displaying PDSs. These are great utilities but I can never remember how to use them and, quite honestly, what they’re called. From the command line:


1176> dasd.py -h
usage: dasd.py [-h] [-d] [-s] [-p PATH] dataset volume

Obtain a sequential or PDS dataset from a zOS volume.

positional arguments:
dataset Dataset and optional members
volume DASD volume (file) dataset is on

optional arguments:
-h, --help show this help message and exit
-d Run the command in debug mode
-s Print a sequential dataset
-p PATH Directory to store listings in

The "s" option indicates that the dataset is seqential.

Use the “s” option to display sequential datasets. Without the “s”, the utility assumes that the dataset is a PDS. The “volume” operand is the name (and path) of the DASD file the PDS resides on. The dataset can be specified on it’s own as in:

sys1.proclib

Or with an optional set of members:

sys1.proclib(db2irlm,dsnhpli)

If no members are specified, the script obtains the list of members from the PDS and downloads them as individual files. If a list is specified, the script downloads each of them as individual files. The files are stored in a directory named after the dataset.

I’ve written some other stuff as well, but I haven’t played with it in a while so I can’t attest to them here. But please let me know if you’d find these utilities useful and I’ll post them online (somewhere).

John Murray




John Murray

2 Avenue de Peterhof
Paris 75017
France
kerravon86@yahoo.com.au [hercules-390]
2018-06-12 10:45:55 UTC
Permalink
Raw Message
Post by John Murray ***@gmail.com [hercules-390]
Hello. First, my apologies if this is the wrong
venue for this.
It's a reasonable venue.
Post by John Murray ***@gmail.com [hercules-390]
But I am a newbie and I’m not really sure where I should post stuff.
Since your utilities are MVS-related, it is probably
best to upload them to the files area here:

https://groups.yahoo.com/neo/groups/H390-MVS/info
Post by John Murray ***@gmail.com [hercules-390]
Submit a job to Z/OS, wait for it to end and get the output back
I think this is very good.

I have something similar for MVS/380 - a runmvs.bat
script, but it works by requiring an IPL, then submits
the job. I had always hoped that there would be
replacement utilities that didn't rely on an IPL, for
those who object to having their system yoyo-ed
all the time.

BFN. Paul.
John Murray john.ar.murray@gmail.com [hercules-390]
2018-06-12 13:22:16 UTC
Permalink
Raw Message
OK, I’ll scoot over to that group and see about getting them up there.

That process to submit a job sounds a bit arduous. I found out about the JES/FTP interface when I was at IBM, relearnig zOS by reading the manuals to see what’d changed. You can see how it’s done once I get that script uploaded.

John Murray


John Murray

2 Avenue de Peterhof
Paris 75017
France
Post by ***@yahoo.com.au [hercules-390]
Post by John Murray ***@gmail.com [hercules-390]
Hello. First, my apologies if this is the wrong
venue for this.
It's a reasonable venue.
Post by John Murray ***@gmail.com [hercules-390]
But I am a newbie and I’m not really sure where I should post stuff.
Since your utilities are MVS-related, it is probably
https://groups.yahoo.com/neo/groups/H390-MVS/info <https://groups.yahoo.com/neo/groups/H390-MVS/info>
Post by John Murray ***@gmail.com [hercules-390]
Submit a job to Z/OS, wait for it to end and get the output back
I think this is very good.
I have something similar for MVS/380 - a runmvs.bat
script, but it works by requiring an IPL, then submits
the job. I had always hoped that there would be
replacement utilities that didn't rely on an IPL, for
those who object to having their system yoyo-ed
all the time.
BFN. Paul.
John Murray john.ar.murray@gmail.com [hercules-390]
2018-06-13 19:23:54 UTC
Permalink
Raw Message
Sorry for the gap. I checked out that page, but the Files menu is greyed out. I presume that means that my id doesn’t have what it takes to contribute to that area? And then who would I ask to gain permission? TIA

John Murray

2 Avenue de Peterhof
Paris 75017
France
Post by John Murray ***@gmail.com [hercules-390]
OK, I’ll scoot over to that group and see about getting them up there.
That process to submit a job sounds a bit arduous. I found out about the JES/FTP interface when I was at IBM, relearnig zOS by reading the manuals to see what’d changed. You can see how it’s done once I get that script uploaded.
John Murray
John Murray
2 Avenue de Peterhof
Paris 75017
France
Post by ***@yahoo.com.au [hercules-390]
Post by John Murray ***@gmail.com [hercules-390]
Hello. First, my apologies if this is the wrong
venue for this.
It's a reasonable venue.
Post by John Murray ***@gmail.com [hercules-390]
But I am a newbie and I’m not really sure where I should post stuff.
Since your utilities are MVS-related, it is probably
https://groups.yahoo.com/neo/groups/H390-MVS/info <https://groups.yahoo.com/neo/groups/H390-MVS/info>
Post by John Murray ***@gmail.com [hercules-390]
Submit a job to Z/OS, wait for it to end and get the output back
I think this is very good.
I have something similar for MVS/380 - a runmvs.bat
script, but it works by requiring an IPL, then submits
the job. I had always hoped that there would be
replacement utilities that didn't rely on an IPL, for
those who object to having their system yoyo-ed
all the time.
BFN. Paul.
Mike Stramba mikestramba@gmail.com [hercules-390]
2018-06-13 21:27:22 UTC
Permalink
Raw Message
All yahoo groups are separate / new login needed for each.

Hercules groups are named similar but are still separate groups.

Some are private / require sending a message to the owner of the
group, I'm not sure about
the mvs one.
Post by John Murray ***@gmail.com [hercules-390]
Sorry for the gap. I checked out that page, but the Files menu is greyed
out. I presume that means that my id doesn’t have what it takes to
contribute to that area? And then who would I ask to gain permission? TIA
John Murray
2 Avenue de Peterhof
Paris 75017
France
Post by John Murray ***@gmail.com [hercules-390]
OK, I’ll scoot over to that group and see about getting them up there.
That process to submit a job sounds a bit arduous. I found out about the
JES/FTP interface when I was at IBM, relearnig zOS by reading the manuals
to see what’d changed. You can see how it’s done once I get that script
uploaded.
John Murray
John Murray
2 Avenue de Peterhof
Paris 75017
France
Post by ***@yahoo.com.au [hercules-390]
Post by John Murray ***@gmail.com [hercules-390]
Hello. First, my apologies if this is the wrong
venue for this.
It's a reasonable venue.
Post by John Murray ***@gmail.com [hercules-390]
But I am a newbie and I’m not really sure where I should post stuff.
Since your utilities are MVS-related, it is probably
https://groups.yahoo.com/neo/groups/H390-MVS/info
<https://groups.yahoo.com/neo/groups/H390-MVS/info>
Post by John Murray ***@gmail.com [hercules-390]
Submit a job to Z/OS, wait for it to end and get the output back
I think this is very good.
I have something similar for MVS/380 - a runmvs.bat
script, but it works by requiring an IPL, then submits
the job. I had always hoped that there would be
replacement utilities that didn't rely on an IPL, for
those who object to having their system yoyo-ed
all the time.
BFN. Paul.
kerravon86@yahoo.com.au [hercules-390]
2018-06-14 06:49:49 UTC
Permalink
Raw Message
Post by John Murray ***@gmail.com [hercules-390]
Sorry for the gap. I checked out that page,
but the Files menu is greyed out. I presume
that means that my id doesn’t have what it
takes to contribute to that area? And then
who would I ask to gain permission? TIA
You need to join the group after going to
the link. Did you do that? There should be
a "join" option somewhere.

BFN. Paul.
Gregg Levine gregg.drwho8@gmail.com [hercules-390]
2018-06-15 03:13:04 UTC
Permalink
Raw Message
Hello!
And I have not seen a blurb from the droid who manages subscription
requests to the H390-MVS group from Mr. Murray either.

Of course someone reading this will be doing this underwater and is
churning his fins in amusement. One will be reading this with an
audience, and still another with a grouchy statue in his front lawn.

And the correspondent will be reading this with a rude koala near him.
-----
Gregg C Levine ***@gmail.com
"This signature fought the Time Wars, time and again."
Post by ***@yahoo.com.au [hercules-390]
Post by John Murray ***@gmail.com [hercules-390]
Sorry for the gap. I checked out that page,
but the Files menu is greyed out. I presume
that means that my id doesn’t have what it
takes to contribute to that area? And then
who would I ask to gain permission? TIA
You need to join the group after going to
the link. Did you do that? There should be
a "join" option somewhere.
BFN. Paul.
Loading...