Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

where do u use low-value and high value in cobol

3 Answers   CGI,


Difference between array and sub-script ?

0 Answers   HCL,


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

0 Answers  


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?

2 Answers   IBM, Wipro,


what is the diff b/w select stsmt and cursor ?

2 Answers  


how many bytes do SPPPP999 will store?

18 Answers  


What is the difference between CALL BY VALUE and CALL BY CONTENT?

7 Answers  


What is "Call by content" and "call by reference"?

4 Answers   ADP, Syntel,


Can we put move statement in COBOL copybook

3 Answers   Global Logic,


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

0 Answers  


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

0 Answers  


period is missing in the cobol program which error we getting

5 Answers   TCS, Tesco,


Categories