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
What are different data types in cobol?
What is the difference between external and global variables in COBOL?
What is the difference between next sentence and continue in cobol programing language?
i need a small 3d program using inline and outline.
Difference between array and sub-script ?
What is the difference between comp and comp-3?
What is the problem of ordered sequential files access?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What are the different open modes available in cobol?
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.
Name the sections present in data division.
What is a scope terminator give example?
When is inspect verb is used in cobol?
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.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?