Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to access SYSOUT data?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to access SYSOUT data?
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

Site Director


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

PostPosted: Mon Sep 22, 2008 11:19 am    Post subject:
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: 2360
Location: Israel

PostPosted: Mon Sep 22, 2008 11:20 am    Post subject:
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

Senior Member


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

PostPosted: Mon Sep 22, 2008 12:11 pm    Post subject: Re: How to access SYSOUT data?
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    Post subject:
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

Senior Member


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

PostPosted: Mon Sep 22, 2008 1:05 pm    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Sep 22, 2008 7:43 pm    Post subject: Reply to: How to access SYSOUT data?
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: 8593
Location: Back in jolly old England

PostPosted: Mon Sep 22, 2008 7:56 pm    Post subject:
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: 1013
Location: India

PostPosted: Mon Sep 22, 2008 8:28 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us