How to fix the Oracle error PCC-01015: Cannot equivalence PIC N variable string?
In this post, you’ll learn more about the Oracle ErrorPCC-01015: Cannot equivalence PIC N variable string with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
PCC-01015: Cannot equivalence PIC N variable string
Reason for the Error PCC-01015: Cannot equivalence PIC N variable string
Cause: A PIC N variable or an implicit VARCHAR group item (with a PIC N variable as an elementary item) was used in an EXEC SQL VAR statement. This is not allowed.
How to fix the Error PCC-01015: Cannot equivalence PIC N variable string ?
You can fix this error in Oracle by following the below steps
Action: Do not use the PIC N variable in an EXEC SQL VAR statement. If you want an equivalence to an Oracle type using an EXEC SQL VAR statement, use a PIC X variable, instead of a PIC N variable.
Leave Your Comment