IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to access SYSOUT data?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
RRameshkumar

New User


Joined: 22 Sep 2008
Posts: 3
Location: Chennai

PostPosted: Mon Sep 22, 2008 11:16 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 22, 2008 11:19 am
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Sep 22, 2008 11:20 am
Reply with quote

Add an IEBGENER step and copy your SYSOUT data to a dataset.

O.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Sep 22, 2008 12:11 pm
Reply with quote

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
View user's profile Send private message
RRameshkumar

New User


Joined: 22 Sep 2008
Posts: 3
Location: Chennai

PostPosted: Mon Sep 22, 2008 12:48 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Sep 22, 2008 1:05 pm
Reply with quote

Thanks, hopefully then suggestions from Dick & O work for you, if implemented correctly..Good Luck.. icon_smile.gif
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Sep 22, 2008 3:46 pm
Reply with quote

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
View user's profile Send private message
RRameshkumar

New User


Joined: 22 Sep 2008
Posts: 3
Location: Chennai

PostPosted: Mon Sep 22, 2008 7:24 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 22, 2008 7:43 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Sep 22, 2008 7:56 pm
Reply with quote

There are so many examples of using SDSF in batch to achieve this request.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Sep 22, 2008 8:28 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
Search our Forums:

Back to Top