What keywords did you specify for the mode parameter on the _Ropen call?
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Frank Kolmann
Sent: 17. januar 2019 08:02
Subject: Re: RPG UDDS Generic File Display/Update (Null fields in program described files)
Ok thanks Barbara, I will try again.
Just to be specific.
What I am doing is writing a "Generic" file update program that can
update any file.
I am using the C Ropen/Rwrite etc functions and it is mostly working
except when I try to ADD a new record.
The ADD fails where I get a error
Cause . . . . . : A data mapping error occurred on field ACTIV in record
number 0, record format TESTR, member number 1, in member TESTPFN file
TESTPFN in library KOLMANN, because of error code 20.
20 -- A field that is not null capable could not be set to null.
Every field in the file has ALWNULL keyword.
I set up a specific NULL byte map
// Set NULL byte MAP
KOLMANN_TESTPFN_TESTR_nmap_t = *all'0';
KOLMANN_TESTPFN_TESTR_nkmap_t = *all'0';
This mailing list archive is Copyright 1997-2019 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