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



when iam reading a flat file which has 100 records through cobol program when iam reading 50th reco..

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

Post New Answer

More COBOL Interview Questions

What guidelines should be followed to write a structured cobol prgm?

1 Answers  


Can we use goto statement in inline_perform ?

5 Answers   IBM,


What are the pertinent COBOL

1 Answers   IBM,


What are the rules of the move verb?

1 Answers  


if you give cylinder(1,1)how many cylinders it will be allocate?

3 Answers   Hewitt,


What is the local-storage section?

1 Answers  


what is filler and what is use of filler

3 Answers   Syntel,


Can we move X(7) to S9(7) COMP?

1 Answers  


can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?

3 Answers   IBM, Satyam,


What are the two search techniques ?

2 Answers   iGate,


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1 Answers  


Categories