× 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.



Thanks Scott.

I'm not sure where I got binary and -1.  must have mixed up my
examples somewhere - I tried to backtrack where I found this example,
but was unsuccessful.

I appreciate your taking time to set me (and my sullying of the
archives) strait.

Rick

On 12/15/05, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx> wrote:
>
> > Some folks haven't run into this yet, so it bears politely repeating that
> > this is a FAQ.  (Maybe an archive search too!)  The problem is not the use 
> > of
> > 'B'; rather, it is a misunderstanding of what the documentation means by the
> > use of the word Binary.
>
> Here's the documentation for the null byte map for a trigger:
>
> New/Original record null byte map
>     This structure contains the NULL value information for each field of
> the new record. Each byte represents one field. The possible values for
> each byte are:
>
>     '0'
>         Not NULL
>     '1'
>         NULL
>
> Where does it say "Binary(2)" in that text?  In any case, a "2B 0" is
> actually a 2-byte AND 2-digit binary number, so this is actually one case
> where it does NOT fall into that FAQ entry.
>
> however, anything that's 2 bytes is obviously wrong for this definition.
> Furthermore, the fact that you're using the "B" data type which converts a
> 2-byte binary (able to store numbers up to 32767) to a 2-digit packed
> (able to store numbers up to 99) is obviously going to cripple you.
>
> So, it's NOT that the OP misinterpreted "Binary(2)", it's that the "B"
> data type is the wrong tool for the job.
>
> There isn't a situation where it's the right tool for the job.  Never use
> it.
> --
> This is the RPG programming on the AS400 / iSeries (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.