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 / 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 |
where do u use low-value and high value in cobol
Difference between array and sub-script ?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?
what is the diff b/w select stsmt and cursor ?
how many bytes do SPPPP999 will store?
What is the difference between CALL BY VALUE and CALL BY CONTENT?
What is "Call by content" and "call by reference"?
Can we put move statement in COBOL copybook
What are the different types of condition in cobol and write their forms.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
period is missing in the cobol program which error we getting