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 found in one of the jcl, gdg version being mentioned as : abc.def.ghi(-0) Can anyone tell me how referring the version as (-0) is different from referring it as (0)

2 Answers  


What does the TIME parameter signify ? What does TIME=1440 mean ?

6 Answers   Accenture, TCS,


How to Enter The Spool Area In Real Time?

7 Answers   IBM,


What is model dataset label(Model DSCB)?

1 Answers  


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

0 Answers  






suppose i have job it contains 10 steps after exicution of job failuer at 3 and 7 th steps i want exicute step 3 and step 7 only how we specify condition ?

5 Answers  


What is a procedure?

1 Answers  


In SPACE,what is directory,RLSE

6 Answers   TCS,


How does the jcl specify the job to os?

0 Answers  


What is difference between Return Code, user completion code, Abend code and reason Code?

2 Answers   IBM, Satyam, Wipro,


In all our JOB Statement we have always COND=(4,LT) defined. Nevertheless when a Job failed the last step should then be executed (send a message to an user). Due to we don't like to change all our JOB's (ca. 2000), we are looking for a simply solution.

4 Answers  


What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with?

1 Answers  


Categories