CPF6710
La longueur indiquée n'est pas correcte.
Specified length not correct.
Gravité 40 · Fin anormale du programme ou de la fonction
Cause
&1 a été indiqué comme longueur dans le paramètre &3, mais l'interface de programmation d'application pour &2 exige un minimum de &4 octets pour les informations de base. &2 exige un minimum de 8 octets pour se terminer avec succès en renvoyant tout ou partie des informations.
&1 was specified for the length in parameter &3, but the application programming interface for &2 requires a minumum of &4 bytes for the base information. &2 requires a minumum of 8 bytes to successfully complete with all or partial information returned.
Que faire
Corrigez le paramètre de longueur et renouvelez l'opération. Pour la définition de &2, consultez la collection de rubriques API de la catégorie Programmation du centre de documentation IBM i, http://www.ibm.com/systems/i/infocenter/.
Correct the length parameter and retry the operation. For the definition of &2, see the APIs topic collection in the Programming category in the IBM i Information Center book, http://www.ibm.com/systems/i/infocenter/.
Variables du message
Quand le système envoie le message, chaque variable est remplacée par une valeur réelle : un nom d'objet, de bibliothèque, un code...
| Variable | Type | Longueur |
|---|---|---|
| &1 | *BIN |
4 |
| &2 | *CHAR |
10 |
| &3 | *CHAR |
2 |
| &4 | *BIN |
4 |
Sur votre IBM i
Afficher la description complète du message :
DSPMSGD RANGE(CPF6710) MSGF(QSYS/QCPFMSG)
L'intercepter dans un programme CL, quand il est envoyé comme message d'échappement :
MONMSG MSGID(CPF6710) EXEC(DO)
/* traitement de l'erreur */
ENDDO