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
 

 

Diff B/W SYSOUT and SYSPRINT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mainframemouli

New User


Joined: 01 Mar 2005
Posts: 52
Location: Mysore

PostPosted: Wed Mar 16, 2005 4:56 pm    Post subject: Diff B/W SYSOUT and SYSPRINT
Reply with quote

this is the Proc , here i just want to know the difference b/w the sysout and sysprint

//Step1 EXEC PGM=*******,PARM=12345671234568T
//COMPANY DD DSN=******.**.CARDLIB(&CMP),
// DISP=SHR
//OLOG DD DSN=SNTRDS.********.LOGOUT,
// DISP=(NEW,CATLG,DELETE),
// UNIT=STOR,
// SPACE=(TRK,(200,200),RLSE),
// DCB=(&DSCB,RECFM=FB,LRECL=43,BLKSIZE=0)
//SYSPRINT DD SYSOUT=&CLSJ
//SYSOUT DD SYSOUT=&CLSJ
//SYSUDUMP DD SYSOUT=&CLSX
//SYSDBOUT DD SYSOUT=&CLSX
//SNAPER DD SYSOUT=&CLSX
//PDUMP DD SYSOUT=&CLSX
Back to top
View user's profile Send private message

Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Wed Mar 16, 2005 5:11 pm    Post subject: Re: Diff B/W SYSOUT and SYSPRINT
Reply with quote

Not knowing what the program is, there's no real way for any of us to know for sure. My best guess is that the SYSOUT DD is for run-time messages, statuses, errors, etc., and that the SYSPRINT DD is the desired program output (a report perhaps).
Back to top
View user's profile Send private message
rick

New User


Joined: 18 Jun 2004
Posts: 59
Location: Chennai

PostPosted: Wed Mar 16, 2005 5:42 pm    Post subject:
Reply with quote

Hi,

The output in SYSOUT and SYSPRINT depends upon the grogram name in the EXEC step (EXEC PGM=pgmname). Normally when you run a utility SORT we could find all the errors and other processing done in SYSPRINT . And other case if you run a COBOL program you could find every output on SYSOUT. SO these depends on the program you run.


frederic.tybalt@anewcon.com
Back to top
View user's profile Send private message
mainframemouli

New User


Joined: 01 Mar 2005
Posts: 52
Location: Mysore

PostPosted: Wed Mar 16, 2005 6:50 pm    Post subject:
Reply with quote

YES

I tried with both sysout and sysprint.

If the Program is a UTILITY then sysout is ignored.
if its a cobol program sysprint is ignored.

thanks..rick
Back to top
View user's profile Send private message
dharmendra_kp

New User


Joined: 10 Mar 2005
Posts: 33
Location: Lewiston

PostPosted: Thu Mar 17, 2005 9:51 pm    Post subject:
Reply with quote

DEAR RICK,
I don't know the ans but at the same time I don't agree with your explanation particularly with your illustration with SORT UTILITY.

A day before yesterday only i faced a problem where in I forgot to code //SYSOUT DD SYSOUT= * in the JCL OF SORT UTILITY, I WAS GETTING MAXCC=20.

LATER I CORRECTED AND ..........SO PLZ ANY BODY GET TO KNOW LET THE FORUM KNOW THE WRITE ANS.

BYE!
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Thu Mar 17, 2005 11:40 pm    Post subject:
Reply with quote

Each program defines the ddnames it uses. Some programs use the SYSOUT DD. Some programs use the SYSPRINT DD. What they use it for depends on the program. Some programs don't use either one.

DFSORT uses the SYSOUT DD for its messages. But that can be changed by specifying the MSGDDN=ddname parameter (e.g. MSGDDN=MYMSGS tells DFSORT to use the MYMSGS DD for its messages). IEBGENER uses the SYSPRINT DD for its messages. But even that can be changed by a calling program that specifies another ddname for the messages.

So the "right" answer is - it depends on the program.
Back to top
View user's profile Send private message
andycool

New User


Joined: 12 Apr 2005
Posts: 64

PostPosted: Tue Apr 12, 2005 3:26 pm    Post subject:
Reply with quote

I guess the bottomline is....

1. SYSOUT as well as SYSPRINT as used for getting the output displayed after the job runs.
2. Some programs use SYSOUT to display their output like SORT shows the summary in SYSOUT while IEBGENER uses the SYSPRINT for the same.
3. So Funtionally speaking both are meant for the same purpose.

4. Technically:
Put the SYSOUT DD sysout=*
and SYSPRINT DD sysout=*. both in all the steps.
The required one will be picked up by the pgm automatically. So no need of worrying wch one to put and wch one not.

Please correct me if i am wrong.
Thanks,
Back to top
View user's profile Send private message
suryakanth HM

New User


Joined: 28 Jun 2005
Posts: 6
Location: Bangalore

PostPosted: Tue Jul 19, 2005 5:24 pm    Post subject: can i have both sysprint dd and sysout dd in the same job
Reply with quote

somebody tried to convinve us that the usage of sysprint or sysout depends on the type of program we use.

Does it mean we cant use both sysprint dd and sysout dd in the same job.
But as we can see in the first example given by someone its having both of them in the same job...
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Jul 19, 2005 6:22 pm    Post subject: Re: Diff B/W SYSOUT and SYSPRINT
Reply with quote

They are right. Which DD you use depends entirely on the program used. Can you use both? Sure, why not? Neither the job nor the program are going to care if those DD's are there. If the program doesn't need a DD, it won't use it.
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 ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm
No new posts Find the total of this field in SYSOUT karz DFSORT/ICETOOL 3 Thu Nov 13, 2014 2:59 pm
No new posts Compare PD Values with same storage &... Shrinika Rajendran JCL & VSAM 5 Wed Nov 05, 2014 3:17 pm
No new posts merge records from 2 ps files with di... kishpra DFSORT/ICETOOL 6 Wed Mar 19, 2014 1:00 pm
No new posts CEEDUMP & Diagnostic message in S... saurabh39 COBOL Programming 4 Fri Jan 10, 2014 12:44 pm


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