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


Please Help Members By Posting Answers For Below Questions

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

2337


What is the difference between perform … with test after and perform … with test before?

1129


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2093


) what is the difference between AID and HANDLE AID?

1868


What is the difference between a binary search and a sequential search what are the pertinent cobol?

910






What are the access modes of START statement?

915


what is difference between cobol and cobol/400

22098


how do you reference the fixed unblock file formats from cobol programs

911


Difference between array and sub-script ?

1356


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?

1067


example for sub strings ? and refernce modifications whit output pls

2057


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

905


What are various search techniques in cobol? Explain.

845


Whats the difference between search & search ALL?

5831


Which Search verb is equivalent to PERFORM…VARYING?

841