I have a job which is a long-running one. Processes millions
of records. Due to some run-time problem (not a problem due
to the job/data) the job abends.What needs to be done to
make the job complete successfully.
Answer Posted / lvrajesh
@Ram,
This is the answer I too gave in the interview.
But the questioner reiterated it's going to abend.
So now thinking on,I get the below:
Restart the job with input having records which are not
processed.By looking at output we can be sure of uptill what
record it was processed. So using DFSORT extract the records
from the last processed one and pass it as i/p and restart
the job from there.
Please let me know your view on this and other possible
answers.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what is the purpose of coding notify parameter in job statement?
how you can direct the data to spool using SYSOUT option?
What parameter of the job statement is used to limit the cpu time consumed by the job?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
How can a fb file convert to vb file using sort program?
How do you create a temporary dataset?
Can we call instream to catalog and catalog to instream?
How to pass the parameter in parm using linkage section ? (syntax)?
How gdg are concatenated?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
Differentiate between the joblib and the steplib statements?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
How can unused space allocation be returned to the system when a dataset is closed?
Why block size is multiple of lrecl in jcl?
What is the purpose of dd * statement in jcl?