Hi *all

ich habe mal eine kleine Frage zu SQLRPG.
Ich möchte mit fetch einen Datensatz in eine DS übertragen.
Eine der Spalten hat aber leider den Wert NULL - ist ein Feld vom Typ VARCHAR.
Das Ergebnis dieser Operation ist SQLCOD -305 nun sagt die Fehlermeldung folgendes aus :


SQL0305N The NULL value cannot be assigned to a host variable in the SELECT or FETCH statement because no indicator variable is specified.

Explanation: A FETCH or embedded SELECT or VALUES operation resulted in the retrieval of a NULL value to be inserted into a host variable for which no indicator variable was provided. An indicator variable must be supplied if a column can return a NULL value.

The statement cannot be processed. No data was retrieved.

User Response: Examine the definition of the FETCH or SELECT object table or the elements of the VALUES list. Correct the program to provide indicator variables for all host variables where NULL values from those columns can be retrieved.

sqlcode: -305


Was habe ich hier zu tun, um den Satz verarbeiten zu können ?
Die Spalte mit dem Null-Wert brauche ich nicht.

Vielen Dank vorab für eingehende Tips!

Gruß
Peter