Page 1 of 2

How to write sysout or sysprint of a job into a dataset

PostPosted: Fri Nov 13, 2009 12:18 pm
by sambras
Hi ,

My work is to copy a sysout details of some jobs in beat spool to an excel sheet. so my need is to write a job's sysout data to a dataset(of FB preferably) which can then FTP'ed and converted into EXCEl. These are productuion jobs that will be available in beta and i wont be able to run the same job locally in my test region(otherwise i could have used XDC). Please help. Pls tell me if there is any JCL or TSO /ISPF command to do it.



Thanks in advance.

Re: How to write sysout or sysprint of a job into a dataset

PostPosted: Fri Nov 13, 2009 3:54 pm
by MrSpock
Maybe the TSO OUTPUT command?

Re: How to write sysout or sysprint of a job into a dataset

PostPosted: Sat Nov 14, 2009 2:32 am
by dick scherrer
Hello,

some jobs in beat spool
What is this? It is not a term i've ever seen before. . .

If you can see the output in the beta spool, why can you not use xdc to save the sysout(s) to dasd?

There must be something i misunderstand. . .

Re: How to write sysout or sysprint of a job into a dataset

PostPosted: Mon Nov 16, 2009 9:31 am
by sambras
Hi Spock,

I tried TSO OUTPUT command, But this command is working only for jobs that are submitted in my own user id. But the job's that i am dealing with are production jobs. I have minimal access to these ( not more than browse ).

Dick,
Sorry dick , its a typo, you got it right
If you can see the output in the beta spool, why can you not use xdc to save the sysout(s) to dasd?

In beta, I am unable to use XDC over the job since all i can give across a job is a single letter command like
S - Browse a list K - Toggle keep status A - Toggle re-archive
P - Print a list X - Toggle nokeep status R,U - Reload a list
M - Mail a list V - View a list


Kindly help me with any other solution.

Re: How to write sysout or sysprint of a job into a dataset

PostPosted: Mon Nov 16, 2009 10:47 am
by dick scherrer
Hello,

Sorry 'bout that - i should have realized beat/beta. . . Got ahead of myself. . .

It is probably time to talk to those who control access and get permission to do what is needed to provide a mechanism to copy spooled info to a dataset.

What tool is used that gives you the "single letter command" to work with?

Re: How to write sysout or sysprint of a job into a dataset

PostPosted: Mon Nov 16, 2009 11:23 am
by sambras
HI,

Those single line commands are options given by ISPF itself.
It is difficult for me to get access as it is a very huge procedure and moreover this is what my work is, i just want to make it simpler ;). As you said like XDC, is there any other command or utility or JCL that will write the sysout information to a dataset.

Re: How to write sysout or sysprint of a job into a dataset

PostPosted: Mon Nov 16, 2009 11:53 pm
by dick scherrer
Hello,

Those single line commands are options given by ISPF itself.
I suspect that this is something site-specific or is not directly part of ispf. It may help if you copy/paste the "single-character" selection screen (and use the "Code" tag for readability and to preserve alignment. When we can see what you are working with it may help clarify.

There are other ways to do this, but not with a one-character "input" limit. . .

It is difficult for me to get access as it is a very huge procedure
If this is to go on for a while, you should go ahead and get this permission (as well as any others needed to do the job).

You might ask the seniors or support people how they copy this print-out to dasd.

Re: How to write sysout or sysprint of a job into a dataset

PostPosted: Tue Nov 17, 2009 10:18 am
by sambras
Hi,

This is how i navigate to the screen
Start ==> B (beta) ==> C (beta92 v4r3) ==> 1(job) ==> give job name


Then you will get a screen like
                                                                             
Job Information Table job1 (JOB52723)                                       
                                                                             
Submitted 11/16/09   at 02:00:10 by IDUCC7                                   
Started     11/16/09   at 02:00:10 in srvclass WBTCHPRD on system PRA1         
Ended       11/16/09   at 02:25:10                                             
                                                                             
  Position to: N - Note  M - Message  S - Step  L - List  X - Extended Info 
                                                                             
  S - Browse a list      K - Toggle keep status      A - Toggle re-archive   
  P - Print a list         X - Toggle nokeep status  R,U - Reload a list       
  M - Mail a list          V - View a list                                     
                                                                             
essage                                                                       
A-11 - 'P' PROCESSING COMPLETE FOR JOB job1                       
         
A-7 JOB#=2611 DUE OUT 09.320/02.10 JCLID=005 SCHID=001 ENTRY=SSCN           
-----------------------------------------------------------------------------
sel Stepname  Procstep   Errortxt   CC    CPU-Time   SRB-Time  Private  High Prv 

    CA07RMS   RMS@20                   0      0:00.02      0:00.00     116 K        8 K

    job1      step1                       0       0:00.00      0:00.00       8 K         4 K

    job1      step2                       0       9:05.11      0:00.00     780 K      1116 K

    job1      step3                       0       0:00.02      0:00.00    1544 K      2292 K


Consider here step 3 is the sysout, all i can give acroos that step below the SEL is a character, i am unable to give XDC.

Re: How to write sysout or sysprint of a job into a dataset

PostPosted: Tue Nov 17, 2009 10:34 am
by dick scherrer
Hello,

For you to be able to do what you want, something will have to change. . .

One way would be to give you access to sdsf on the beta system.

Another (though probably less likely) would be to add a "Copy to dasd" option to the selection screen you now use.

Suggest you speak with your manager and ask some acceptable alternative to the current process be implemented.

Is this not a problem for others who must use things on the beta system?

Re: How to write sysout or sysprint of a job into a dataset

PostPosted: Tue Nov 17, 2009 10:45 am
by sambras
Hi ,

These are task that i will be doing daily (copying the sysout information to an excel sheet). Whoever gonna replace me in future have to do it in the same way. This usually happens in many companies where some work have to be done manually. So, if i get this to my manager and ask him to get this to the higher level for granting access. He'll definitely not since it is not a showstopper kind of thing.
I just thought there could be some other solution so i can finish some of my task by submitting a job. If there is nothing that can be done,it's ok, i 'll continue to do wat i do right now..