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

Diff B/W SYSOUT and SYSPRINT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 84
Location: In my tiny cubicle ...

PostPosted: Wed Mar 16, 2005 5:11 pm
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
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
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
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 Developer


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

PostPosted: Thu Mar 17, 2005 11:40 pm
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
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
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

Global Moderator


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

PostPosted: Tue Jul 19, 2005 6:22 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Passing SYSPRINT to Invoked Program PL/I & Assembler 9
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
No new posts No sysout coming in spool JCL & VSAM 4
No new posts fetch the record number from FMNMAIN ... CLIST & REXX 10
No new posts Control M features to check string in... Compuware & Other Tools 1
Search our Forums:

Back to Top