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
Mike Spencer
BMC Software
Joe
--
Joe Aulph,
<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>
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 --
>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?
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?
>
----------------------------------------------------------------------
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
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
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,
----------------------------------------------------------------------
>-----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
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
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
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
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