Hi,
There is one serious error Iam facing with, i.e. Duplicate key on access path.
Iam writing one RPG program, in which Iam writing a record to a physical file through a logical file. I've defined two logical files over that physical file and using only one in my program.
Now the problem is, the first logical file cotnains one key E.g. employee id and second logical file contains one key E.g. Employee name. Now iam trying to insert a record using first logical file with data employee id and employee name.
Now if the employee name is the one in second logical file then this error is coming.If the employee name is something else then no error is coming. But, I've nowhere declared and used the second logical file in my program.
And also I've not changed the defaults while creating the logical files and the physical files.
There is one serious error Iam facing with, i.e. Duplicate key on access path.
Iam writing one RPG program, in which Iam writing a record to a physical file through a logical file. I've defined two logical files over that physical file and using only one in my program.
Now the problem is, the first logical file cotnains one key E.g. employee id and second logical file contains one key E.g. Employee name. Now iam trying to insert a record using first logical file with data employee id and employee name.
Now if the employee name is the one in second logical file then this error is coming.If the employee name is something else then no error is coming. But, I've nowhere declared and used the second logical file in my program.
And also I've not changed the defaults while creating the logical files and the physical files.
Comment