| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
shriya reddy
Joined: 05 Jun 2004
Posts: 45
|
| Posted: Tue Nov 16, 2004 11:23 pm Post subject: How to RESTART the Job after the 250 Record Updated |
|
|
Hi friends,
I have one query on restart logic in DB2.
In insertion of records in tables i want put commit after every 100 records.how i write the source code.
In insertion my job is abend after 250 records. How i Know that at what record it Abended.
How i restart the job after succssful commit.
please give me these source code....
Regards,
Shriya Reddy. |
|
| Back to top |
|
shriya reddy
Joined: 05 Jun 2004
Posts: 45
|
| Posted: Fri Nov 19, 2004 6:20 pm Post subject: |
|
|
Hi friends,
Any body give me the answer.
bye
shriya |
|
| Back to top |
|
janardhana Reddy
Joined: 20 Oct 2004
Posts: 17
Location: Bangalore
|
| Posted: Sat Nov 20, 2004 11:21 am Post subject: |
|
|
Nothing to worry in this case... Any how you are saying that job abended at 250 th record. Check the 250 th record you required updates or inserted at 250 th row.
Basic thing you need to understand is once the job completed normally or abnormally commmit will be done.
Nothing to worry restart as from abended step. In this case you have to know if any scheduler constraints there.
Note: Db2 won't allow more than 10,000 record updates in one job without commit. |
|
| Back to top |
|
shriya reddy
Joined: 05 Jun 2004
Posts: 45
|
| Posted: Sat Nov 20, 2004 10:30 pm Post subject: |
|
|
Hi Janardhan,
thanks for reply.
If i don't know at which record insertion my job is abended.how i should know that.
Bye
Shriya |
|
| Back to top |
|
janardhana Reddy
Joined: 20 Oct 2004
Posts: 17
Location: Bangalore
|
| Posted: Tue Nov 23, 2004 3:00 pm Post subject: |
|
|
Hi ,
You find record in ceedump or check in the spool :shock: |
|
| Back to top |
|
ksivapradeep
Joined: 30 Jul 2004
Posts: 98
|
| Posted: Mon Nov 29, 2004 3:40 pm Post subject: |
|
|
hi, janardhana Reddy
is there any specificlimit that we cant update more than 10000 records b4 commit if so suppose if i give more space to the records for update what happens becoz after giving commit only the records are stored in the table is it correct
regards,
siva pradeep |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|