DB2 VARCHAR data type is used to store a string with variable-length characters but a maximum of the string length…