|
The help text from CRTRPGMOD, instead of the snipped reference to RPGLE doc:
Allow null values (ALWNULL) - Help
_*INPUTONLY_
Specifies that the ILE RPG module can successfully read records
with null-capable fields containing null values from externally
described input-only database files. When a record containing
null values is retrieved, no data mapping errors occur and the
database default values are placed into any fields which contain
null values. The module cannot do any of the following:
- use null-capable key fields
- create or update records containing null-capable fields
- determine whether a null-capable field is actually null
while the module is running
- set a null-capable field to be null.
Maybe try that parameter specification on the create command, instead of [or in addition to] using the H-Spec to see if that resolves.
DSPPFM uses that feature of the database, but DSPPFM never uses any keyed access/lookup nor update. Although not RPG, DSPPFM also reads the non-described data. At first glance of the help text, I thought maybe a key field is null capable, giving rise to the error. But with a program described definition of the file.? Well... it seemed more likely than having declared the input file for update.?
Anyhow if eventually the feature gets activated, just like DSPPFM, using that feature to Allow Null values prevents the application from knowing or designating the datum as the NULL value [except possibly to infer from the value being the default for the field].
Regards, Chuck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.