Page 1 of 1

Get the sysout values into a dataset

PostPosted: Fri Jan 27, 2012 1:42 pm
by jvinoth
can anyone tell me how to get the sysout values into a dataset..

can i use like this
//SYSOUT DD SYSOUT=give the output data set name

if it is a new one also give disp=new,dcb=...parameteres as well


if i give like this what will happen...please tell me

thanks

Re: SYSOUT

PostPosted: Fri Jan 27, 2012 1:52 pm
by halfteck
Coded like that will give you a JCL error, try it and see.

However coding

//SYSOUT DD DSN=,DISP=,SPACE= etc etc will happily give you the output to a dataset. (obviously you have to fill in the CB of RECFM=VB,LRECL=137,BLKSIZE=0 will suffice

Re: SYSOUT

PostPosted: Fri Jan 27, 2012 2:18 pm
by enrico-sorichetti
jvinoth was not implying about using the DD statement as written,
he was just describing it

anyway the answer is YES
provide a valid DD statement for a PS dataset with the proper DCB attributes

the result will be that the sysout instead of appearing in the spool will be written to the dataset
( after that You can browse it )

Re: SYSOUT

PostPosted: Fri Jan 27, 2012 2:30 pm
by jvinoth
thank you so much..

Re: SYSOUT

PostPosted: Fri Jan 27, 2012 5:09 pm
by NicC
I agree with halfteck because the example was
//SYSOUT DD SYSOUT=dsname

and SYSOUT=dsname is invalid - it should be DSN=dsname

Re: SYSOUT

PostPosted: Fri Jan 27, 2012 7:05 pm
by enrico-sorichetti
nice example of Tetrapyloctomy :geek:

provide a valid DD statement for a PS dataset with the proper DCB attributes

my YES was a pretty generic YES about writing to a dataset instead of spool
not about the exact format of that dd statement as written,
it seemed clear to me ( at least )
and the TS would have discovered it pretty soon

Re: SYSOUT

PostPosted: Fri Jan 27, 2012 9:27 pm
by steve-myers
enrico-sorichetti wrote:... and the TS would have discovered it pretty soon
Based on previous posts, the TS
  • Appears to be illiterate, at least in the sense he or she is incapable of finding anything in manuals or even reading manuals.
  • Appears to have an IQ well below 0.
Actually, when I read the post, I thought of responding, "When you specify SYSOUT=class, the system assigns a dataset name of its choosing to the dataset in the JESx SPOOL. Your JCL cannot assign a dataset name. Period. End of story."

Since the TS keeps posting these inane topics, I've been thinking about not responding to anything he or she posts.

Re: SYSOUT

PostPosted: Fri Jan 27, 2012 11:01 pm
by BillyBoyo
If a genuine beginner, needs erormous support/training which is not what this site is for.

If a fool, trying to look like a beginner for a tease, then needs to grow up, but won't. Spoilt child for life.

I'm now with Ed and Steve. Out, apart from warning off others.