Step to get the SYSOUT data in dataset instead of Spool

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
pratik397
Member
Posts: 5
Joined: Sat Mar 06, 2010 5:54 pm
Location: Pune

Step to get the SYSOUT data in dataset instead of Spool

Post by pratik397 » Fri Feb 03, 2012 11:39 am

How can i get the SYSOUT data in the dataset instead of SPOOL when the job runs in order to avoid Abend. Since the program contains many displays and it abends when the SPOOL gets full.

Please suggest the appropraite step to add in JCL?

Thanks

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Fri Feb 03, 2012 3:21 pm

Change this

Code: Select all

//SYSOUT DD SYSOUT=* 
to

Code: Select all

//SYSOUT DD DSN=dataset.name,DISP=(...
in your Job.
Regards,
Anuj

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Fri Feb 03, 2012 4:32 pm

Stop using so many DISPLAYs. Add them and remove them as you need them. Do not use so much test data.

You've been doing mainframe for almost 2 years and you did not realise that you could replace sysout with a dataset? Wow!
Regards
Nic

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Sat Feb 04, 2012 1:46 pm

At one of my shop Nic, they created an entire report in the SYSOUT and mapped that SYSOUT to a dedicated CLASS. Report would span to many pages, at times millions of them. However, as far this thread is concerned and the way original question is posed I doubt if this is the case here.
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others