when iam reading a flat file which has 100 records through
cobol program when iam reading 50th records it gets abends
.. so when i run the program again it should read from 50th
record .where it got abened ? how it is possible
Answer Posted / pramod dixit
WHEN EVER THERE IS AN ERROR / ABEND IN THE CODE(50TH
RECORD), BEFORE THE PROGRAM STOPS, WWRITE THAT RECORD INTO
TEMP (PRE DEFINEED AND CREATED) FILE. eVERY TIME THE
PROGRAM IS RUN, CHECK THE TEMP FILE, IF THE TEMP FILE IS
EMPTY, THEN CODE IS NOT ABENDED., IF THE TEMP FILE HAS
VALUES, READ THE TEMP FILE, PASS THE KEY VALUES FROM IT TO
FLAT FILE AND DO A READ. ., AND PERFORM OPRATIONS FOR ALL
OTHER RECORDS AFTER THAT RECORD.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What is the difference between perform … with test after and perform … with test before?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
) what is the difference between AID and HANDLE AID?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What are the access modes of START statement?
what is difference between cobol and cobol/400
how do you reference the fixed unblock file formats from cobol programs
Difference between array and sub-script ?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
example for sub strings ? and refernce modifications whit output pls
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What are various search techniques in cobol? Explain.
Whats the difference between search & search ALL?
Which Search verb is equivalent to PERFORM…VARYING?