Hi,
Can you please give the solution to this problem........
I have one flat file with 1000 records, I am copying from that file to db2 table. But in-between due to some problem job is abend, it move 400 records properly into db2 table. After restart a job, I need to start at 401 record...
what can i do? can you please tell me solution....
With Regards,
chinna.
data moving from flat file to db2 table
-
- Posts: 81
- Joined: Sat Jun 09, 2007 4:24 am
- Skillset: Some?
- Referer: mcmillan
- Location: Tucson AZ
Re: data moving from flat file to db2 table
It depends on what tools you want to use, a sort copy can provide the means to skip the first 400 records......chinna wrote:After restart a job, I need to start at 401 record...
what can i do? can you please tell me solution....
-
- Posts: 4
- Joined: Tue Dec 11, 2007 4:13 pm
- Skillset: cobol,jcl,db2,pl/1,ims,cics
- Referer: google
Re: data moving from flat file to db2 table
Thanks for your replay........
I got a solution
I got a solution

-
- Posts: 81
- Joined: Sat Jun 09, 2007 4:24 am
- Skillset: Some?
- Referer: mcmillan
- Location: Tucson AZ
Re: data moving from flat file to db2 table
Which was?chinna wrote:I got a solution
-
- Posts: 2
- Joined: Thu Jan 03, 2008 11:39 am
- Skillset: COBOL, DB2, VSAM
- Referer: through friends
Re: data moving from flat file to db2 table
you may use the DB2 Restart Logic.
whenever you write a successful record to the DR2 table, you move the primary key field of that record to a temporary dataset. by doing this, you will be storing the key of the last successful insertion into the table. after the job abends and you want to restart the job. you first check that temporary dataset for the key. the last key written in that dataset is the place where the job ended. now you read the source dataset using that key and start processing further.
whenever you write a successful record to the DR2 table, you move the primary key field of that record to a temporary dataset. by doing this, you will be storing the key of the last successful insertion into the table. after the job abends and you want to restart the job. you first check that temporary dataset for the key. the last key written in that dataset is the place where the job ended. now you read the source dataset using that key and start processing further.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Recatalog Error:Moving a dataset entry from one cat to other
by gselvasridharan » Fri Apr 07, 2023 1:33 pm » in VSAM/SMS - 3
- 5001
-
by gselvasridharan
View the latest post
Mon Apr 10, 2023 12:58 pm
-
-
-
Moving High-Values from Comp-3 - COBOL Ver 6.4
by girik1001 » Thu Jul 20, 2023 12:08 pm » in IBM Cobol - 1
- 3939
-
by sergeyken
View the latest post
Thu Jul 20, 2023 6:38 pm
-
-
-
How to import a ZFS data file into VSAM catalog
by danik56 » Tue Nov 23, 2021 10:29 pm » in VSAM/SMS - 0
- 3446
-
by danik56
View the latest post
Tue Nov 23, 2021 10:29 pm
-
-
- 0
- 3076
-
by dylson
View the latest post
Sat Aug 01, 2020 11:09 pm
-
- 5
- 2766
-
by sergeyken
View the latest post
Thu Feb 25, 2021 8:19 pm