after udatingg first 110 rows, my job abends. now how do i
change my cobol program so that when i restart the Job it
will start updating from 111th row ( i.e in next run I
di=ont want to update those 110 rows which are already been
updated in the first run before job abend)

Answer Posted / sasha

- allocate control file with counter init to zero
- when you successfully processed your input records
accumulate your counter on control file
- if you abend then in your program first find out in
control counter is > 0. Then you reread your input file
until number of records read is equal to your counter on
control file. Next record is your current record to be
processed

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different data types in cobol?

701


What is the difference between external and global variables in COBOL?

821


What is the difference between next sentence and continue in cobol programing language?

717


i need a small 3d program using inline and outline.

1646


Difference between array and sub-script ?

1171






What is the difference between comp and comp-3?

704


What is the problem of ordered sequential files access?

708


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17068


What are the different open modes available in cobol?

726


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2064


Name the sections present in data division.

705


What is a scope terminator give example?

661


When is inspect verb is used in cobol?

683


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2020


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

648