× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I was looking for an example program where I have done this, but I don't
have it anymore.

The solution I used, was to do use API QUSLFLD to list the fields in the
file. Then I used the map along with that output to determine what flag was
associated with which field.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"...Yes, the lectures are optional. Graduation is also optional."
-- Professor Brian Quinn


I've searched on Google for some easy solution to this, but it seems
there's nothing about.

We're starting to use Null-capabel field in or DB mainly for RI-related
needs. Everuthing's goes ok, except for a trouble.

We use a lot trigger program to perform sone calculation based on
changed to data. Usually, we defined the trigger in a way that allows
change to PF to be transparet to the trigger: just recompile the
trigger
(we've wrote an in.house proc that update the PF, recompile dependecies
and trigger without need to remember to do it) but, using null map
indicator, i didn't have any way to match the null-indicator to the
file-based DS. i just need to *count* the fileds and then say "if
NullInd(x) then".

This is oblviously prone to error if a field will be added *before* the
null-capable fields (and, of course, causes the code to be less clear).

Is there any way to map the null-field map to the DS ??? since the DS
iself is declared basing on the file, it has the field null-capable, so
i suppose it has it's' own null-field map, and ti would be nice to be
able to copy or override this with the one coming from the Trigger's
parameter.

Any hint will be appreciated. Thanks.

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.