Hi ,
I have a datafile , a sample of it is as below.
Nope,REDEMP_VAL,591894209
Nope,PREV_CPN_DT,591894209
Nope,CUR_CPN,591894209
Nope,CPN,591894209
Nope,AMT_OUTSTANDING,591894209
Nope,REDEMP_VAL,591894308
Nope,PREV_CPN_DT,591894308
Nope,CUR_CPN,591894308
Nope,CPN,591894308
Nope,AMT_OUTSTANDING,591894308
Nope,CPN,591894506
Nope,AMT_OUTSTANDING,591894506
Nope,REDEMP_VAL,591894605
Nope,CUR_CPN,591894605
Nope,CPN,591894605
Nope,AMT_OUTSTANDING,591894605
The file is sorted on the third ( last) column ( id ) which is a character column. There should ideally be five records for each of the ids , but for some reason there are certain records which have less then 5 records per id. I need to identify the valid sets ( 5 recs each ) and create a file of it and load them onto my db.
Any ideas folks how to go about this.
Many thanks,
I have a datafile , a sample of it is as below.
Nope,REDEMP_VAL,591894209
Nope,PREV_CPN_DT,591894209
Nope,CUR_CPN,591894209
Nope,CPN,591894209
Nope,AMT_OUTSTANDING,591894209
Nope,REDEMP_VAL,591894308
Nope,PREV_CPN_DT,591894308
Nope,CUR_CPN,591894308
Nope,CPN,591894308
Nope,AMT_OUTSTANDING,591894308
Nope,CPN,591894506
Nope,AMT_OUTSTANDING,591894506
Nope,REDEMP_VAL,591894605
Nope,CUR_CPN,591894605
Nope,CPN,591894605
Nope,AMT_OUTSTANDING,591894605
The file is sorted on the third ( last) column ( id ) which is a character column. There should ideally be five records for each of the ids , but for some reason there are certain records which have less then 5 records per id. I need to identify the valid sets ( 5 recs each ) and create a file of it and load them onto my db.
Any ideas folks how to go about this.
Many thanks,