View previous topic :: View next topic
|
Author |
Message |
Arunkumar Chandrasekaran
New User
Joined: 01 Jun 2010 Posts: 63 Location: India
|
|
|
|
Hi,
Once if we print one job's (present in SDSF) output using 'TSO OUTPUT' command in TSO terminal , will the job removed from spool???
I tried 'TSO OUTPUT' for one job.But after the complete execution of the command I couldn't find the job in spool (SDSF).What is happeneng here actually???
Please let me know if i am missing anything here??
Thanks,
Arun |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Did you look up the manual? |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
... or ===> tso help output |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Mr. Clouston and Mr. Heinze both made valid suggestions.
Few people use the TSO OUTPUT command and are really all that familiar with the way it functions, so you should open the "TSO/E Command Reference" manual for your z/OS release and see what it says.
The online help for OUTPUT seems to say you need to specify the KEEP option keyword to retain data sets displayed by OUTPUT. |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
You may want to use:
PRT SYSOUT
fill in screen and press enter
PRT CLOSE
This works well for me.
I have never used TSO OUTPUT before. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Wow! I haven't used the TSO OUTPUT command in over 20 years.
If I recall correctly, you have to use HOLD KEEP options to prevent the job from being deleted from the Spool. |
|
Back to top |
|
|
Arunkumar Chandrasekaran
New User
Joined: 01 Jun 2010 Posts: 63 Location: India
|
|
|
|
Hi all,
Thanks for your response.Now I confirmed once OUTPUT of one JOB is printed in terminal using 'TSO OUTPUT' the job will be removed from spool.
But here I want to know why it is like that?? I believe SDSF keeps the excuted job for a period of time.But Why it is removed once we uesed 'TSO OUTPUT' command.
I also gone thru 'TSO command reference'.But it didnt answer my question.
My question is we just extracting the data from spool and displaying it in terminal.So, What is the need for deleting here.I know I am missing something basically about SDSF.But What is that???
Thanks,
Arun |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
Arun,
First, did you read what steve-meyers wrote:
Quote: |
The online help for OUTPUT seems to say you need to specify the KEEP option keyword to retain data sets displayed by OUTPUT. |
Second, I have 28 years experience, and have never (that I can recall) used this command. don.lehey has not used it in twenty years. Steve-meyers, who has more experience than both don and I is not familiar with the command. What does this tell you?
Your signature says:
Quote: |
Happy learning!!!! |
Now learn from this:
1) I have a situation, and tried to resolve it with the TSO OUTPUT command.
2) The results are not what I expected
3) I posted on a forum, where several experts knew little of this command
4) Maybe I should scrap this approach and try another
5) Explain on the forum, what I am trying to achieve (rather than how), and see what happens. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
There is also option 3.8, known informally as the "Outlist utility". That is another old-school way to handle job output.
When I first started, the OUTPUT command was the recommended method, and 3.8 was considered something newfangled.
When it first came out, SDSF was limited to Operations personnel in many shops. |
|
Back to top |
|
|
Arunkumar Chandrasekaran
New User
Joined: 01 Jun 2010 Posts: 63 Location: India
|
|
|
|
Hi all,
Actually here my question is not at all how to save the output of a job.I know how to handle it using TSO OUTPUT command for my requirement.I know by giving KEEP keyword we can retain the job in SDSF.
My Question is,
Why after 'TSO OUTPUT', job is removed from SDSF?.Let me explain it another way,
What I am expecting is that a job should be deleted from SDSF only it is purged.Where as here I am doing a process (printing here) using the output
of job.I am not telling anything about removing the job from SDSF.
But after printing job is removed.What is the link between printing output and removing job from spool.It looks like , only reason to keep the job in SDSF is printing its output in TSO.
I know something basic I am missing to understand about SDSF.May be it seems crazy.But I just want to understand.
Even we have KEEP keyword ,why the command is working like that by default??
Thanks,
Arun |
|
Back to top |
|
|
Arunkumar Chandrasekaran
New User
Joined: 01 Jun 2010 Posts: 63 Location: India
|
|
|
|
Moreover I am not trying to achieve anything using that.I am asking this just for my understanding. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you spoken to YOUR site support people to find out the defaults at your site.
It may be simply that the default of OUTPUT is an immediate job purge class. Maybe the actions taken depend on the job name or sysout class or whatever.
Questions that only people at your site can answer. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
I'm just guessing here, but ...
The TSO OUTPUT command goes back to the very first release of TSO in the very late 1960s or very early 1970s. Disk storage in those days was both very expensive (relative to the way things are today) and very limited in capacity. The NOKEEP default may have been an attempt to release storage as soon as possible, which was a laudable goal then, though less valuable today. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It is normal that the completion of the printing of a spool dataset is that it is purged.
You can also keep a spool dataset when printing is completed, but the default is to purge it.
SDSF is just a tool to look at spool datasets. It is not the spool itself. If something or someone purges a dataset, you won't see it with SDSF anymore. A spool dataset is not "in" SDSF, SDSF allowing you to look at it conveniently, and manage it, whilst it is in the spool.
Once it is not in the spool, you can no longer look at it with SDSF (or anything else). |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Not only that, but most TSO users were using the relatively slow 2741 printer/keyboard type terminal; most output was too slow to bother with. Not only that, in systems with HASP or ASP, preparing JCL to prevent HASP or ASP from grabbing the output was moderately difficult. I seem to recall problems submitting jobs to HASP or ASP, too. It didn't work reasonably seamlessly until MVS in the middle 1970s. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
don.leahy wrote: |
There is also option 3.8, known informally as the "Outlist utility". That is another old-school way to handle job output. ... |
3.8 is just an ISPF shell around the OUTPUT command for those shops too cheap to provide SDSF. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hello,
I used to run jobs & the output would be in spool.
Sometimes when the output needs to be archived I used the command O infront of the job to route it to the SAR output class.
My guess is, the working of output command is similar to coding a MSGCLASS statement after the job has executed.
It simply routes the output to another location. So once you issue a OUTPUT command the joblog is routed from SDSF to another place defined on the output command. |
|
Back to top |
|
|
Arunkumar Chandrasekaran
New User
Joined: 01 Jun 2010 Posts: 63 Location: India
|
|
|
|
Thanks all for your responses.Now It makes some sense to me |
|
Back to top |
|
|
|