Difference between sysprint, sysout

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Posts: 7
Joined: Sun Jan 02, 2011 9:44 am

Difference between sysprint, sysout

Post by sairamdarsi@hotmail.com » Fri Jan 21, 2011 11:41 am

//sysprint dd sysout=*
//sysout dd sysout=*

meaning of *? diff bet them?? their role with utilities??

i know something ...but no clarity.....

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

Post by Anuj Dhawan » Fri Jan 21, 2011 1:51 pm

"*" will request the output class in the MSGCLASS parameter on the JOB statement. Basically, it routes the messages to default SYSOUT class. You might use specific classes also, e.g.:

Code: Select all

//sysout dd sysout=A
where "A" might represent a printer-class.

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

Post by Anuj Dhawan » Fri Jan 21, 2011 1:57 pm

diff bet them??
I'm sorry, but what what is your question here? Do you want to know the difference between SYSOUT and SYSPRINT or is there something else you want to know?

User avatar
Active Member
Posts: 107
Joined: Sat Oct 23, 2010 2:17 pm
Location: Chennai,India.

Post by Gurugars » Fri Jan 21, 2011 1:59 pm

Hi sairamdarsi,

first of all sysprint & sysout statements are used to route the output of the jcl..

sysprint is used to print the output of dataset related information in that job..
IEFBR14 is a dummy utility that does not requires sysout statemet.. other utility like IEBGENER, IEBCOPY utilities should require sysprint.. else jclerror will be resulted.

sysout is used to route the cobol program's DISPLAY statements..

Now, * means route these messages to the class specified in the MSGCLASS..

sysout dd sysout= A will route the results to printer output..

even you can direct these results to a dataset dy specifying the dsn neme at the place of * like

hope i'm right in this post.. if not please correct me.[/img]

You're never fully dressed without a smile :)

Post Reply


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.
Mainframe Interview questions

Other References
Mainframe Tools and others