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
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 |
Answer / devang
ONE HAS TO ENTER MSGCLASS=(,0) IN THE JOBCARD TO OBTAIN THE
DESIRED OUTCOME
| Is This Answer Correct ? | 1 Yes | 1 No |
What are steplib and joblib? What for they are used?
the command to open a dataset directly from the JCL instead of opening it separately using 3.4 option.
What is QSAM error usually when it is occurs?
what is the default region size if I dont specify region parametre in my job card ( I know that if I specify region=0k or 0M, then the job will occupy all he available resources at the time of job execution), but I want to know the defult value for "region" paramatre.
describe the exec statement,its meaning ,syntax and keywords?
What will happen if you attempt to restart a job in the middle of a JCL // IF .... // ENDIF?
Which statement is used to identify the private libraries in job?
In my JCL 10 Steps Will Be there Now i want to execute step05 And step06. How to Give the Cond?
what is inrec fields and outrec fields in sorting
Can we have a JOBSTEP without any EXEC ?
How gdg are concatenated?
i want to restart frm step 2, previously i coded cond parameter on step2 wht happens at tht time ?