Get the sysout values into a dataset



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Get the sysout values into a dataset

Postby jvinoth » Fri Jan 27, 2012 1:42 pm

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
jvinoth
 
Posts: 132
Joined: Fri Nov 18, 2011 3:13 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Get the sysout values into a dataset

 

Re: SYSOUT

Postby halfteck » Fri Jan 27, 2012 1:52 pm

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
halfteck
 
Posts: 42
Joined: Tue Nov 08, 2011 8:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: SYSOUT

Postby enrico-sorichetti » Fri Jan 27, 2012 2:18 pm

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 )
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2706
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 139 times

Re: SYSOUT

Postby jvinoth » Fri Jan 27, 2012 2:30 pm

thank you so much..
jvinoth
 
Posts: 132
Joined: Fri Nov 18, 2011 3:13 pm
Has thanked: 0 time
Been thanked: 1 time

Re: SYSOUT

Postby NicC » Fri Jan 27, 2012 5:09 pm

I agree with halfteck because the example was
//SYSOUT DD SYSOUT=dsname

and SYSOUT=dsname is invalid - it should be DSN=dsname
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2755
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 110 times

Re: SYSOUT

Postby enrico-sorichetti » Fri Jan 27, 2012 7:05 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2706
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 139 times

Re: SYSOUT

Postby steve-myers » Fri Jan 27, 2012 9:27 pm

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.
steve-myers
Global moderator
 
Posts: 1919
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 206 times

Re: SYSOUT

Postby BillyBoyo » Fri Jan 27, 2012 11:01 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post