How to save log details of a job?,after execution



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

How to save log details of a job?,after execution

Postby ragur.satheesh » Mon Dec 13, 2010 11:56 am

How can u save the log details of a JOB? After the exection of a job?
ragur.satheesh
 
Posts: 17
Joined: Thu Jul 22, 2010 12:34 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to save log details of a job?,after execution

Postby NicC » Mon Dec 13, 2010 2:21 pm

If you mean all the system messages produced by the job - JESMSG SYSMSG SYSPRINT etc these are usually written to some spooling application e.g. SDSF where you can save the output, or parts of it, by the relevant copy command for the application - in the case of SDSF this is PRINT but you need to also use ODSN and CLOSE (off the top of my head) to allocate the dataset the job output is to be written to and release it after saving.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How to save log details of a job?,after execution

Postby dick scherrer » Tue Dec 14, 2010 1:17 am

Hello,

If you use PRINT, you will use
PRINT ODSN
PRINT
PRINT (as many as needed)
PRINT CLOSE

If the system supports XDC it is less keying. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post