How are things, hope all is well.
Did you manage to get the API working?
I have a RPG version coded here. http://wiki.midrange.com/index.php/QDFRTVFD
The API is VERY BIG and my program only gets the basic info of
Fields/Constants and attributes.
But I am not doing so well in converting it to C.
Perhaps you have some suggestions.
From: Jevgeni Astanovski <Jevgeni.Astanovski@xxxxxxxxxxxxx>problem.
Date: Fri, 24 Jan 2014 15:01:34 +0000
Thought that "with a little help" from Mark and Carsten I solved my
How mistaken I've been...and length.
I only need a list of fields with field name, I/O attribute, field type
data was also available starting from there.
Found field names in QDFFNTB structure. Very good. All other necessary
But then I found out, that hidden fields' names are missing in QDFFNTBstructure at all! Field is mentioned, I can retrieve all attributes - but
not the name...
to QDFWRCDI and QDFFNTBL.
Continued searching - as Carsten advised - went to QDFWFLEI and from there
Very good again, now all names available, including hindden, also fieldlengths.
But how to get data type and I/O? There is an index to QDFFFITB, but I sawthat in my DSPF with 7 formats these indexes repeate. So they are unique
inside one format only. And I failed to find reference to format names in
Where-Used part of the puzzle...
The only idea I have by now is to rely on formats order and assume thatorder of records in "Where-used" section matches exactly order of formats
in Record format table (QDFARFTE)
Or I am missing something again?
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives