View previous topic :: View next topic
|
Author |
Message |
RRameshkumar
New User
Joined: 22 Sep 2008 Posts: 3 Location: Chennai
|
|
|
|
Hi,
I am finding problem in accessing SYSOUT data which needs to be mailed to users.
One resolution was to add a file name for the SYSOUT DD, but I don't want to do this because this information needs to be available in JHS forever.
My questions is "IS IT POSSIBLE TO ACCESS SYSOUT DATA IN A NEW STEP (immediate INSY STEP to convert the data to Sequential file)?" |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Write the data to the file first and then copy the file to the sysout so it may remain in jhs as long as you need. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Add an IEBGENER step and copy your SYSOUT data to a dataset.
O. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
RRameshkumar wrote: |
(immediate INSY STEP to convert the data to Sequential file)?" |
What's the message should I percept from this sentence ? |
|
Back to top |
|
|
RRameshkumar
New User
Joined: 22 Sep 2008 Posts: 3 Location: Chennai
|
|
|
|
Hi,
I wanted to access the SYSOUT data (say SYSOUT of STEP010).
This data in STEP010.SYSOUT should be accessed in a different step (say STEP011 - this may be a extract step which will write the data from STEP010.SYSOUT into a new file).
Thanks,
Ramesh |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thanks, hopefully then suggestions from Dick & O work for you, if implemented correctly..Good Luck.. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
If you have mainframe printer available at users end then you cna print copy of sysout at users printer using OUTPUT keyword parameter.
example is as below
Code: |
//LIVE OUTPUT CLASS=R,COPIES=1
//BKUP OUTPUT CLASS=X,COPIES=1
//SYSPRINT DD SYSOUT=*,OUTPUT=(*.LIVE,*.BKUP)
|
|
|
Back to top |
|
|
RRameshkumar
New User
Joined: 22 Sep 2008 Posts: 3 Location: Chennai
|
|
|
|
Hi all,
Thanks for your valuable suggestions and kindly post more ideas on this.
I have found the below code to be working.
//*YSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SUBSYS=(DDS,'DDNAME=BALRPT')
//BALOUT DD SYSOUT=*
//*
//TOLLBAL DD DSN=MNT7.RAMESH.TEST.SYSOUT,DISP=(,CATLG,DELETE),
// MGMTCLAS=GDGB,SPACE=(CYL,(5,5),RLSE),
// DCB=(LRECL=133,RECFM=FB,DSORG=PS,BLKSIZE=0)
//BALRPT DD SUBSYS=(DDS,'DDNAME=BALOUT,TOLLBAL')
//* |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
//SYSOUT DD SUBSYS=(DDS,'DDNAME=BALRPT') |
the solution might work in Your organization/environment
the quoted dd statement shows that a subsystem environment has been setup as a sysout receiver
what works for You will certainly fail where the DDS subsystem is not active |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
There are so many examples of using SDSF in batch to achieve this request. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi,
This will work....
When i execute the job. I will get a report SYSPRINT in SPOOL
Code: |
//SYSPRINT DD SYSOUT=* |
To get that report in a dataset use the below code
Code: |
//SYSPRINT DD DSN=HXSULL.QUERY,
// DISP=(NEW,KEEP,KEEP),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=2400),
// UNIT=SYSDA,SPACE=(TRK,(1,1)) |
Now, the report is not in the spool. It is available only in the DATASET.
To make it available in the SPOOL. IEBGENER is used.
How ?. See the below code
Code: |
//GENER EXEC PGM=IEBGENER
//SYSUT1 DD DSN=HXSULL.QUERY,DISP=SHR
//SYSUT2 DD SYSOUT=*,DCB=(RECFM=FBA,LRECL=133)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY |
You all been helpfull, in one way or the other........ |
|
Back to top |
|
|
|