× 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'm glad you ran into this. I ran into it a couple of months ago. Seems
that you can put a value in a null capable field and leave the null
indicator set to *on.
At the time I started a thread asking if the 'eval' statement handles null
values. It doesn't. The reason I thought that it did is because I could DBU
the file and see the values that I put in the fields, but if I viewed the
same file by SQL it would show me the null values. (I hope I remembered
this correctly.)

When ScCnt was first assigned a value, was the null indicator handled
correctly or was it always being turned off?

Patrick Conner
www.ConnecTown.com
(828) 244-0822



                    Andy Youens
                    <Andy@formaserve.        To:     "'rpg400-l@midrange.com'" 
<rpg400-l@midrange.com>
                    co.uk>                   cc:
                    Sent by:                 Subject:     RE: Null Values for 
Date
                    rpg400-l-admin@mi
                    drange.com


                    08/24/01 11:06 AM
                    Please respond to
                    rpg400-l






I'm using ALWNULL(*USRCTL), but the

If        Not  %NullInd( ScCnt )

test always seems to be true even though some dates have a null value.

Thanks.

Regards

Andy Youens
FormaServe Systems

T: 01908 319566
F: 01908 316000
M: 07770 380276
E: mailto:Andy@FormaServe.Co.Uk <mailto:Andy@FormaServe.Co.Uk>
W: www.FormaServe.Co.Uk <http://www.FormaServe.Co.Uk>



-----Original Message-----
From: Buck Calabro [mailto:Buck.Calabro@commsoft.net]
Sent: 24 August 2001 15:37
To: rpg400-l@midrange.com
Subject: RE: Null Values for Date


> If        Not  %NullInd( ScCnt )
>          or
>should I be using the *Loval check
> If        ScCnt <>  *Loval
>
>I'm not having much joy using the %NullInd
>way, should this work?

Hi Andy,
  NULL is not a value you can assign to a field, so *LOVAL won't work.
NULL
is an attribute, like size, text and edit code.  You should be able to use
%NULLIND for this as long as you specify ALWNULL(*USRCTL).  What trouble
are
you running into?

Buck Calabro
Commsoft; Albany, NY
Visit the Midrange archives and FAQ at http://www.midrange.com
"For every complex problem, there is a solution that is simple, neat, and
wrong."
 -- HL Mencken
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
This message contains confidential information and is intended solely for
the named addressee.
If you are not the named addressee you should not distribute, copy or take
any action in relevance to the contents of this email.
FormaServe Systems does not accept liability for any errors or omissions in
the contents of this message or attached documents or for any damage
suffered by your computer system caused by any errors or viruses contained
in the email or any attached documents.
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com







As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.