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



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

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

Postby sambras » Fri Nov 13, 2009 12:18 pm

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.
sambras
 
Posts: 9
Joined: Wed Jan 21, 2009 3:40 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

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

Postby MrSpock » Fri Nov 13, 2009 3:54 pm

Maybe the TSO OUTPUT command?
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

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

Postby dick scherrer » Sat Nov 14, 2009 2:32 am

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby sambras » Mon Nov 16, 2009 9:31 am

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.
sambras
 
Posts: 9
Joined: Wed Jan 21, 2009 3:40 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Mon Nov 16, 2009 10:47 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby sambras » Mon Nov 16, 2009 11:23 am

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.
sambras
 
Posts: 9
Joined: Wed Jan 21, 2009 3:40 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Mon Nov 16, 2009 11:53 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby sambras » Tue Nov 17, 2009 10:18 am

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.
sambras
 
Posts: 9
Joined: Wed Jan 21, 2009 3:40 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Tue Nov 17, 2009 10:34 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

Postby sambras » Tue Nov 17, 2009 10:45 am

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..
sambras
 
Posts: 9
Joined: Wed Jan 21, 2009 3:40 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post