SQL - SQLCODE's - Códigos negativos -300


Volta a página anterior

Volta ao Menu Principal


Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

SQLCode -300

   
 
  • Causa
    • THE STRING CONTAINED IN HOST VARIABLE OR PARAMETER position-number IS NOT NUL-TERMINATED.

      A host variable or parameter is invalid.
      Its entry in the SQLDA is indicated by position-number.
      The host variable or parameter is a C string variable that is one of the following:
      • Used as an input parameter to a stored procedure or function.
      • Returned as an output parameter from a stored procedure or function.
      • Referenced as an input variable in an embedded SQL statement.
      • Used to provide a value for a parameter marker of a dynamic SQL statement.

      If the data type of the variable is character string, it is invalid because it does not include X'00'.
      If the data type of the variable is graphic string, it is invalid because it does not include X'0000'.
  • Ação do sistema
    • The statement cannot be processed.
  • Resposta ao Desenvolvedor
    • Append a NUL-terminator to the end of the string.

      SQLSTATE: 22024

© Copyright IBM Corp.