Re: Struggling with API QDFRTVFD

Jevgeni Astanovski <[email protected]>
Newsgroups gmane.comp.lang.as400.c
Message-ID <CAJuVQr3rFCMOS4E_QcaNkUa9YCaQg=q9M2Dj8W0AXZ30Yb2bug@mail.gmail.com>
No, Frank.
I had complete failure in my activity and I just dropped it.
The problem I tried to solve was very "applicational" and could be
solved in a different way using a couple of "manual iterations".
Of course the exercise was pretty challenging, but I could not spend
infinite time for that ....

This API is a real nightmare itself and the documentation is a double nightmare.

Jevgeni.


On Wed, Aug 6, 2014 at 2:12 PM, Frank Kolmann <[email protected]> wrote:
> Hi Jevgeni
>
> 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.
>
>
> Regards
> Frank
>
>
>>From: Jevgeni Astanovski <Jevgeni.Astanovski@xxxxxxxxxxxxx>
>>Date: Fri, 24 Jan 2014 15:01:34 +0000
>>
>>Thought that "with a little help" from Mark and Carsten I solved my
> problem.
>>How mistaken I've been...
>>I only need a list of fields with field name, I/O attribute, field type
> and length.
>>
>>Found field names in QDFFNTB structure. Very good. All other necessary
> data was also available starting from there.
>>But then I found out, that hidden fields' names are missing in QDFFNTB
> structure at all! Field is mentioned, I can retrieve all attributes - but
> not the name...
>>
>>Continued searching - as Carsten advised - went to QDFWFLEI and from there
> to QDFWRCDI and QDFFNTBL.
>>Very good again, now all names available, including hindden, also field
> lengths.
>>But how to get data type and I/O? There is an index to QDFFFITB, but I saw
> that 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 that
> order 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-Zwy7GipZuJhWk0Htik3J/[email protected]
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/c400-l
> or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-l.
>
-- 
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.