View previous topic :: View next topic |
Author |
Message |
cobcurious Beginner

Joined: 04 Oct 2003 Posts: 68 Topics: 25
|
Posted: Tue Oct 19, 2004 5:25 am Post subject: Sysout or output spool |
|
|
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
 |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Oct 19, 2004 7:11 am Post subject: |
|
|
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 |
|
 |
cobcurious Beginner

Joined: 04 Oct 2003 Posts: 68 Topics: 25
|
Posted: Tue Oct 26, 2004 12:51 am Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Tue Oct 26, 2004 1:20 am Post subject: |
|
|
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 |
|
 |
cobcurious Beginner

Joined: 04 Oct 2003 Posts: 68 Topics: 25
|
Posted: Sun Oct 31, 2004 11:05 pm Post subject: |
|
|
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 |
|
 |
Mike Chantrey Intermediate
Joined: 10 Sep 2003 Posts: 234 Topics: 1 Location: Wansford
|
Posted: Mon Nov 01, 2004 11:31 am Post subject: |
|
|
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 |
|
 |
|
|