Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Write JES data to an external data set?

1,097 views
Skip to first unread message

Joe Aulph

unread,
Dec 8, 2009, 3:36:03 PM12/8/09
to
Hello all,

I have a user that want to, as part of a batch process, write the JESMSGLG
and/or the JESYSMSG JES data sets to an external data set.
My first thoughts were that, outside of a manual SDSF process, it can't be
done.
Duty bound that I am, I've dug thru the JCL Reference discussions on OUTPUT,
WRITERs, attempted a few tests with variations on the WRITER theme, sith no
success.

Has anyone ever heard of, or done, such a thing? Short of, possibly, an OEM
product, which we can't afford, I can't think of one.

Anyone?

TIA,
--

Joe Aulph
Florida Dept. of Children & Families
Senior Systems Programmer:
850-487-8945

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to list...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Spencer, Mike

unread,
Dec 8, 2009, 3:46:10 PM12/8/09
to
After accessing the task or joblog use the PRT ODSN 'output.dataset' command. After this initial command, issue the PRT command which will send the jesmsg output to the data set, then issue PRT CLOSE to close the process. You can select the number of lines to print if you do not want the whole thing.

Mike Spencer
BMC Software

Joe Aulph

unread,
Dec 8, 2009, 3:52:08 PM12/8/09
to
Mike,
Thanks and my apologies for not mentioning that the PRINT ODSN was my first
recomendation, he (the user) want's this as part of the batch process,
doesn't want to bother with the SDSF commands.

Joe

--
Joe Aulph,

Staller, Allan

unread,
Dec 8, 2009, 4:03:03 PM12/8/09
to
"SDSF REXX" and BATSO. Check the FMs!

<snip>

> After accessing the task or joblog use the PRT ODSN 'output.dataset'
> command. After this initial command, issue the PRT command which will

> send the jesmsg output to the data set, then issue PRT CLOSE to close
> the process. You can select the number of lines to print if you do
> not want the whole thing.
>

</snip>

<snip>


> I have a user that want to, as part of a batch process, write the
JESMSGLG
> and/or the JESYSMSG JES data sets to an external data set.
> My first thoughts were that, outside of a manual SDSF process, it
can't be
> done.
> Duty bound that I am, I've dug thru the JCL Reference discussions on
> OUTPUT,
> WRITERs, attempted a few tests with variations on the WRITER theme,
sith no
> success.
>
> Has anyone ever heard of, or done, such a thing? Short of, possibly,
an OEM
> product, which we can't afford, I can't think of one.
>

</snip>

Thompson, Steve

unread,
Dec 8, 2009, 4:30:29 PM12/8/09
to
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-...@bama.ua.edu] On
Behalf Of Joe Aulph
Sent: Tuesday, December 08, 2009 2:34 PM
To: IBM-...@bama.ua.edu
Subject: Write JES data to an external data set?

Hello all,

I have a user that want to, as part of a batch process, write the


JESMSGLG
and/or the JESYSMSG JES data sets to an external data set.
My first thoughts were that, outside of a manual SDSF process, it can't
be
done.
Duty bound that I am, I've dug thru the JCL Reference discussions on
OUTPUT,
WRITERs, attempted a few tests with variations on the WRITER theme, sith
no
success.

Has anyone ever heard of, or done, such a thing? Short of, possibly, an
OEM
product, which we can't afford, I can't think of one.

<SNIP>

You might try looking at "Appendix C. The External Writer" in the JES2
Initialization and Tuning Guide (SA22-7532-05). It explains how to set
up an external writer that might solve your problem.

I have had the same requirements back in MVS/SP3 days and I think this
is how I solved it. I've also written a writer to handle this, but I
don't think you want to get that deep.

Regards,
Steve Thompson

-- Opinions express by this poster may not reflect those of poster's
employer --

Patrick Lyon

unread,
Dec 8, 2009, 4:41:16 PM12/8/09
to
On Tue, 8 Dec 2009 15:34:27 -0500, Joe Aulph <sysp...@GMAIL.COM>
wrote:

>Duty bound that I am, I've dug thru the JCL Reference discussions on
OUTPUT,
>WRITERs, attempted a few tests with variations on the WRITER theme, sith
no
>success.
>


Joe - you indicated you could not get this to work. This should work. What
type of issues are you having not making this be able to work?

Barkow, Eileen

unread,
Dec 8, 2009, 4:49:41 PM12/8/09
to
I have a job consisting of several sdsf batch steps and tso clists steps which archive the output of various jobs to data sets.
SDSF batch does not allow many of the functions available online, but if you want a copy of my stuff I can give it to you.
We also have the CA VIEW product that some applications use to archive their output.

Lizette Koehler

unread,
Dec 8, 2009, 4:50:33 PM12/8/09
to
I would like to understand the request. As there are several ways to approach it

1) What level of z/OS are you running? (In z/OS V1.9 you get the SDSF REXX interface)
2) When I look at a job in JES2 I see the following
JESMSGLG JES2
JESJCL JES2
JESYSMSG JES2
SYSTSPRT RUNOSH
OSHOUT1 RUNOSH

Do you ONLY want the section called JESYSMS, Or do you want the entire JOB STREAM that was created (Print and all)?

If just the JESYSMSG then you can use the SDSF Batch Interface to print that in BATCH. If you want the whole job, then again SDSF Batch can do it.

If you have the SDSF REXX available (z/OS V1.8?? and above) then we have even more power.

A Sample of how to use the SDSF Batch (this will print syslog to a dataset)
//COPYIT EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//*
//SYSUT2 DD DISP=(MOD,CATLG,DELETE),DSN=TSO.SDSF.SYSLOG,
// UNIT=DISK,LRECL=133,BLKSIZE=0,
// SPACE=(CYL,(10,5),RLSE)
//SYSUT1 DD *
SYSLOG Listing thru ISFADF SDSF batch
//*
//SYSIN DD DUMMY
/*
//BTCHSDSF EXEC PGM=ISFAFD
//ISFOUT DD SYSOUT=*
//SDSFLOG DD DISP=OLD,DSN=TSO.SDSF.SYSLOG
//ISFIN DD *
LOG
TOP
AFD WTOR OFF
AFD LOGSTAMP OFF
AFD QUERY DS
LOG

This could be tailored for just your job and then print it to a dataset.


Lizette

> Joe Aulph wrote:

>
>I have a user that want to, as part of a batch process, write the JESMSGLG
>and/or the JESYSMSG JES data sets to an external data set.
>My first thoughts were that, outside of a manual SDSF process, it can't be
>done.
>Duty bound that I am, I've dug thru the JCL Reference discussions on OUTPUT,
>WRITERs, attempted a few tests with variations on the WRITER theme, sith no
>success.
>
>Has anyone ever heard of, or done, such a thing? Short of, possibly, an OEM
>product, which we can't afford, I can't think of one.
>
>Anyone?
>

----------------------------------------------------------------------

Lionel Dyck

unread,
Dec 8, 2009, 5:01:39 PM12/8/09
to
Here is a generalized tool that I wrote awhile back that should help with
this - it is intended to be run in batch.

http://www.lbdsoftware.com/sdsfext110.zip

It is called SDSF Extract and you can read about it here
http://www.lbdsoftware.com/sdsfext_users_guide.pdf


Lionel B. Dyck <><
z/Linux Specialist
IBM Corporation
Global Technology Services - Kaiser Account
Work: 925-926-5332
Cell: 925-348-0237
E-Mail: ld...@us.ibm.com
AIM: lbdyck | Yahoo IM: lbdyck | GTalk:
lbdyck

Richard Peurifoy

unread,
Dec 8, 2009, 5:10:33 PM12/8/09
to
Joe Aulph wrote:
> Hello all,
>
> I have a user that want to, as part of a batch process, write the JESMSGLG
> and/or the JESYSMSG JES data sets to an external data set.
> My first thoughts were that, outside of a manual SDSF process, it can't be
> done.
> Duty bound that I am, I've dug thru the JCL Reference discussions on OUTPUT,
> WRITERs, attempted a few tests with variations on the WRITER theme, sith no
> success.
>
> Has anyone ever heard of, or done, such a thing? Short of, possibly, an OEM
> product, which we can't afford, I can't think of one.
>
> Anyone?
>
> TIA,

I don't know how much work you want to do for this,
but have a look at:

http://ew.share.org/client_files/callpapers/attach/SHARE_in_Austin/S2811DD095959.pdf

This is a Share session that discussed using SAPI (SSI 79).

There is sample code on the CBT site.

--
Richard

Eric Bielefeld

unread,
Dec 8, 2009, 6:21:12 PM12/8/09
to
There is a couple programs on the CBT site that I sent in a number of years ago called SOUT. It uses an exit to the sysout writer. It keeps track of all jobs by jobname, number, and date and time, and uses ISPF panels to display jobs. All the information is saved in a VSAM file, and sequential datasets on disk and tape store the output from the sysout writer. The best thing is to download it from the CBT site and look at the doc. This may be what you are looking for, and maybe not. I haven't used it for 4 years, and I didn't write any of the programs.

--
Eric Bielefeld
Systems Programmer
IBM MVS Technical Services
Dubuque, Iowa
563-845-4363


> Joe Aulph wrote:
> > Hello all,
> >
> > I have a user that want to, as part of a batch process, write the JESMSGLG
> > and/or the JESYSMSG JES data sets to an external data set.
> > My first thoughts were that, outside of a manual SDSF process, it can't be
> > done.
> > Duty bound that I am, I've dug thru the JCL Reference discussions on OUTPUT,
> > WRITERs, attempted a few tests with variations on the WRITER theme, sith no
> > success.
> >
> > Has anyone ever heard of, or done, such a thing? Short of, possibly, an OEM
> > product, which we can't afford, I can't think of one.
> >
> > Anyone?
> >
> > TIA,

----------------------------------------------------------------------

Paul Gilmartin

unread,
Dec 8, 2009, 7:13:06 PM12/8/09
to
On Tue, 8 Dec 2009 16:28:54 -0500, Thompson, Steve wrote:

>-----Original Message-----
>From: IBM Mainframe Discussion List [mailto:IBM-...@bama.ua.edu] On
>Behalf Of Joe Aulph

>Sent: Tuesday, December 08, 2009 2:34 PM
>
>You might try looking at "Appendix C. The External Writer" in the JES2
>Initialization and Tuning Guide (SA22-7532-05). It explains how to set
>up an external writer that might solve your problem.
>

Thinking of a Requirement, all the ideas of writers and SDSF
(and, who knows, the TSO OUTPUT command) are underreaching.
I'd like to be able to code:

//X OUTPUT DEFAULT=YES,JESDS=ALL,PATH='/my/Unix/directory'

and have the various spool data sets, qualified by DSID,
written to files in that directory in real time, so I
could watch them with "tail -f", unburdened by SYSDSN
ENQs. I suspect a writer could write to Unix files. Could
it do this in real time?

-- gil

Gerhard Postpischil

unread,
Dec 8, 2009, 7:46:10 PM12/8/09
to
Joe Aulph wrote:
> I have a user that want to, as part of a batch process, write the JESMSGLG
> and/or the JESYSMSG JES data sets to an external data set.
> My first thoughts were that, outside of a manual SDSF process, it can't be
> done.

While looking through the CBT, I found a program called CHEW.
The source is supplied, and could be tailored to suit. Sorry,
but I don't remember the file number.

Gerhard Postpischil
Bradford, VT

Brian Westerman

unread,
Dec 9, 2009, 2:20:29 AM12/9/09
to
Sorry for the blatant plug, but...

We have an extremely low-cost but feature-rich product (SyzSPOOL) that
offloads and manages the spool data to sequential files plus gives you
access to the output via ISPF and any WEB browser (ie, firefox, opera,
etc.). Additionally you can send the output via EMAIL or FTP in any of
several formats (PDF, WORD, HTML, etc.). The interface allows you to
access and manage any part of the job individually (i.e. just the JES
datasets or individual DD's or the entire output). The data is fully RACF
(or ACF/2 or TopSecret) protected and the output can be managed to expire at
almost any interval the user can think of via the startup parms, even down
to individual jobnames, classes, destinations, etc.

http://syzygyinc.net/SyzSpool.aspx

The regular price is $5k per site, but sites that participate IBM-Main (or
Share) are provided with an additional 25% to 50% discount (depends on the
products selected).

There is a new version going into beta testing in January which provides
several more MAJOR features than those listed on the web site for the
current Version 4.3 release. If you're interested you can send me a note or
use the links on the website to request more information. I believe that
the manuals are also located on the website's download area.

Brian Westerman

David Cartwright

unread,
Dec 9, 2009, 5:35:49 AM12/9/09
to
Thanks for the plug Gerhard. File 172, writes output to flat files, so you
HAVE to tailor it for your own naming standards.
You can browse etc those files with normal ISPF functions or e-mail with
Lionel's excellent XMITIP. Of course, a commercial product comes with
support and apparently enhancements. Your choice.

DC


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-...@bama.ua.edu] On Behalf

Of Gerhard Postpischil
Sent: Wednesday, December 09, 2009 12:38 AM
To: IBM-...@bama.ua.edu
Subject: Re: Write JES data to an external data set?

Gerhard Postpischil
Bradford, VT



___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

McKown, John

unread,
Dec 9, 2009, 8:33:17 AM12/9/09
to
> -----Original Message-----
> From: IBM Mainframe Discussion List
> [mailto:IBM-...@bama.ua.edu] On Behalf Of Paul Gilmartin
> Sent: Tuesday, December 08, 2009 6:11 PM
> To: IBM-...@bama.ua.edu
> Subject: Re: Write JES data to an external data set?
>
> On Tue, 8 Dec 2009 16:28:54 -0500, Thompson, Steve wrote:
>
> >-----Original Message-----
> >From: IBM Mainframe Discussion List [mailto:IBM-...@bama.ua.edu] On
> >Behalf Of Joe Aulph
> >Sent: Tuesday, December 08, 2009 2:34 PM
> >
> >You might try looking at "Appendix C. The External Writer"
> in the JES2
> >Initialization and Tuning Guide (SA22-7532-05). It explains
> how to set
> >up an external writer that might solve your problem.
> >
> Thinking of a Requirement, all the ideas of writers and SDSF
> (and, who knows, the TSO OUTPUT command) are underreaching.
> I'd like to be able to code:
>
> //X OUTPUT DEFAULT=YES,JESDS=ALL,PATH='/my/Unix/directory'
>
> and have the various spool data sets, qualified by DSID,
> written to files in that directory in real time, so I
> could watch them with "tail -f", unburdened by SYSDSN
> ENQs. I suspect a writer could write to Unix files. Could
> it do this in real time?
>
> -- gil

What I would __LOVE__ would be a UNIX pseudo-filesystem which "mapped" into the SPOOL. So that I would see something akin to:

/jes/spool/jobname/jobnumber/jes2/jesmsglg
/jes/spool/jobname/jobnumber/jes2/jesjcl
/jes/spool/jobname/jobnumber/jes2/jesysmsg
/jes/spool/jobname/jobnumber/stepname.procstep/ddname

I could then read any or all of those to get the sysouts associated with them. Subject to the JESSPOOL profiles in RACF, of course. There might be other things as well to retrieve other information on the spool.

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
john....@healthmarkets.com * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM

0 new messages