MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sysout or output spool

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
cobcurious
Beginner


Joined: 04 Oct 2003
Posts: 68
Topics: 25

PostPosted: Tue Oct 19, 2004 5:25 am    Post subject: Sysout or output spool Reply with quote

Hi,
I have a query for all you gurus out there.I have a query related to my observation about SYSOUT that when we run the job that executes a COBOL program and suppose we have DISPLAYS in our cobol program...I can go to the joblog (while the job is running) and see the messages written so far to SYSOUT and I press the ENTER key,I get to see some more of them,if they are written to SYSOUT.This is not observed for normal datasets because one is not allowed to browse a dataset to which the data is being written.What makes SYSOUT display data ,as explained ,and why is not possible with the normal datasets like a sequential dataset ?
Thanks
Cobcurious
Rolling Eyes
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Oct 19, 2004 7:11 am    Post subject: Reply with quote

Cobcurious,

Try this.

1.Pre-allocate a dataset for sysout prior running your actual cobol pgm.
2.In your PGM step allocate the above pre-allocated file to sysout with disp=shr
3.Submit your program
4.You can Browse the pre-allocated dataset while the pgm is still writting to it.

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cobcurious
Beginner


Joined: 04 Oct 2003
Posts: 68
Topics: 25

PostPosted: Tue Oct 26, 2004 12:51 am    Post subject: Reply with quote

Hi Kolusu,
Let me first thank for your reply.Kolusu,I have still got the answer as to
Quote:
why we are seeing these two different behaviour by sysout and normal datasets ?

I will be happy If some one can answer that.
Thanks
Cobcurious
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Oct 26, 2004 1:20 am    Post subject: Reply with quote

While the data set is open, there is no end-of-file (EOF) mark, so you can't tell where the data ends. If you use ISPF browse, for example, to read it. you will see I/O errors near the bottom of the data. In addition, buffering may keep data from being written to the file until the block is full so you won't see output immediatly.
Back to top
View user's profile Send private message Visit poster's website
cobcurious
Beginner


Joined: 04 Oct 2003
Posts: 68
Topics: 25

PostPosted: Sun Oct 31, 2004 11:05 pm    Post subject: Reply with quote

Hi semigeezer,
Quote:
If you use ISPF browse, for example, to read it. you will see I/O errors near the bottom of the data
...Do you mean browsing the file thru =3.4 option ? If not please explain me in more detail about how to go about doing what you have suggested.....But I
STILL don't get the reason for such behaviour by datasets and sysout? Isn't sysout a dataset?
Regards
Cobcurious
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Mon Nov 01, 2004 11:31 am    Post subject: Reply with quote

JES spool datasets *are* a bit different to ordinary datasets (I think they're particularly intended to be read while being written for example). I don't know if the JES manuals would explain the details of the differences.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group