How to fix the Oracle error PCC-01014: “VARYING” not supported with PIC N PICTURE clause?
In this post, you’ll learn more about the Oracle ErrorPCC-01014: “VARYING” not supported with PIC N PICTURE clause with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
PCC-01014: “VARYING” not supported with PIC N PICTURE clause
Reason for the Error PCC-01014: “VARYING” not supported with PIC N PICTURE clause
Cause: The keyword VARYING was used in a PIC N variable declaration.
How to fix the Error PCC-01014: “VARYING” not supported with PIC N PICTURE clause ?
You can fix this error in Oracle by following the below steps
Action: Remove the keyword VARYING from the variable declaration. If you want to declare a PIC N VARCHAR variable, specify the precompiler option VARCHAR=YES and declare the variable as an implicit VARCHAR group item as illustrated by the following example: EXEC SQL BEGIN DECLARE SECTION END-EXEC. … 01 ENAME. 05 ENAME-LEN PIC S9(4) COMP. 05 ENAME-ARR PIC N(20). … EXEC SQL END DECLARE SECTION END-EXEC.
Leave Your Comment