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 ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is the default value of DISP for temp datasets

5 Answers   IBM,


. How do we cast a variable in COBOL

1 Answers   HSBC,


What are the different types of condition in cobol and write their forms.

0 Answers  


what is qualification on occurs clause?

2 Answers  


hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?

1 Answers  






how do u list the abended jobs?

1 Answers   IBM,


Describe the difference between subscripting and indexing ?

2 Answers  


Define cobol?

0 Answers  


Explain how you can characterize tables in cobol?

0 Answers  


77 I pic 99 value 5 Perorm para-A I times. Para -A. move 10 to I. How many times the para-A will be executed.?

9 Answers   TCS,


hi. This is Ram.i have one doubt.why can't we display comp-3 variables directly? let me answer quickly plez........

1 Answers  


How to convert bunch of words in a line to relvant ASCII values?

2 Answers  


Categories