View previous topic :: View next topic
|
Author |
Message |
mainframemouli
New User
Joined: 01 Mar 2005 Posts: 52 Location: Mysore
|
|
|
|
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 |
|
|
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
|
|
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 |
|
|
rick
New User
Joined: 18 Jun 2004 Posts: 59 Location: Chennai
|
|
|
|
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 |
|
|
mainframemouli
New User
Joined: 01 Mar 2005 Posts: 52 Location: Mysore
|
|
|
|
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 |
|
|
dharmendra_kp
New User
Joined: 10 Mar 2005 Posts: 33 Location: Lewiston
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
andycool
New User
Joined: 12 Apr 2005 Posts: 64
|
|
|
|
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 |
|
|
suryakanth HM
New User
Joined: 28 Jun 2005 Posts: 6 Location: Bangalore
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
|