How can I write the joblog in the spool on normal end of a
job step and direct the joblog to a dataset only if the step
abends?

Answers were Sorted based on User's Feedback



How can I write the joblog in the spool on normal end of a job step and direct the joblog to a data..

Answer / venkat

If you have a sysabend or sysudump dd name in the job then
it captures the Job log upon abnormal termination in to the
dataset... Else will route it to spool or sar according to
the msgclass given.. If msgclass=o then it will route to
spool if msgclass=d it will route to sar

Is This Answer Correct ?    4 Yes 1 No

How can I write the joblog in the spool on normal end of a job step and direct the joblog to a data..

Answer / devang

ONE HAS TO ENTER MSGCLASS=(,0) IN THE JOBCARD TO OBTAIN THE
DESIRED OUTCOME

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JCL Interview Questions

I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:

4 Answers   ITC Infotech, TCS,


Is stepname is a MUST and should be unique also for each JOBSTEP ? or system can supply the stepname for a step which is not given a name by the programmer ?

6 Answers   IBM,


Explain about RECORDING MODE Clause

1 Answers  


wht r different types of sort fields in jcl ?

1 Answers   IBM,


Explain the function of //jcllib statement?

0 Answers  


How we can code in a jcl to execute a job in a particular time and date without using any job shudular?. (Eg) i want to execute a particular job at 8 am on 01/01/2010.

2 Answers   Target,


I have 3 duplicate records in a file . I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?

3 Answers   CTS, DELL,


how to increase the space of a dataset in instream procedure.

1 Answers   HCL,


Name a few IBM utility programs, and explain its function.

0 Answers  


what JCL Procedures?

0 Answers  


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

1 Answers   Tesco,


How do you submit a JCL under CICS environment ?

1 Answers   IBM,


Categories