How to fix the Oracle error PCB-00200: Cannot equivalence PIC N or PIC G variable “string”?
In this post, you’ll learn more about the Oracle ErrorPCB-00200: Cannot equivalence PIC N or PIC G variable “string” with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
PCB-00200: Cannot equivalence PIC N or PIC G variable “string”
Reason for the Error PCB-00200: Cannot equivalence PIC N or PIC G variable “string”
Cause: A PIC N/G variable, an implicit VARCHAR group item with a PIC N/G elementary item, or a group item with a PIC N/G elementary item was used in an EXEC SQL VAR statement. This is not allowed.
How to fix the Error PCB-00200: Cannot equivalence PIC N or PIC G 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