View previous topic :: View next topic
|
Author |
Message |
sultan_noor89
New User
Joined: 27 May 2006 Posts: 10 Location: At my Desk
|
|
|
|
Hi all,
I am writng the index file using the data in the flat file.
some records are written in index file.
But after writing some records I got file status = 22.
Please tell me the solution
regards
Sultan |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
sultan_noor89
New User
Joined: 27 May 2006 Posts: 10 Location: At my Desk
|
|
|
|
Could you please let me know,
how to overcome this error???
regards
Sultan |
|
Back to top |
|
|
Suresh Ponnusamy
Active User
Joined: 22 Feb 2008 Posts: 107 Location: New York
|
|
|
|
Please validate the input data against the file contents and remove the duplicates or if already there skip the record. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you need to investigate your 'duplicates'.
they are only duplicates, because that is the way you defined your key.
if they are valid duplicates - meaning they really should not be considered as duplicate:
define your key differently.
otherwise, as Suresh said, cull your duplicates with sort if you don't want to recode your cobol module. |
|
Back to top |
|
|
sultan_noor89
New User
Joined: 27 May 2006 Posts: 10 Location: At my Desk
|
|
|
|
thanks Suresh |
|
Back to top |
|
|
Suresh Ponnusamy
Active User
Joined: 22 Feb 2008 Posts: 107 Location: New York
|
|
|
|
You are welcome as always |
|
Back to top |
|
|
|