Re: RPG DATE QUESTION



Date fields must have a valid date. All zero's is not a valid date.

I don't like it either, but thats the rule.

On 26 Jun 2006 13:03:50 -0700, "Roscoe" <Roscoe_Floyd@xxxxxxxxxxx>
wrote:

In an RPGLE program I'm trying to zero out a *ISO date not clear it. I
have some customer records that have 0 for a maintenance date and I
need to select them. The date in the file is 8 not *ISO I'm loading
both date fields in "D" type variables and comparing. This works fine
if both dates are not zeros but I'm having trouble with 0 compare.

There has to be a real easy way to do this I'm just missing it. What I
want to do is just INZ the selection date to zeros but I get an error.
If the default value for the selection date is zeros and the date
coming from file is zeros then the record will be selected. I think
there is an easy answer to this and I'm just missing it.

I've tried : C EVAL #WEND =
*ALL'0'

EXAMPLE

D#WEND D
VALUE('0000-00-00') INZ('0000-00-00')

DFT('0000-00-00')
D#WORD D

if order date equals ending date add to counter
if #wend = #word
eval rcdcnt += 1
end

.



Relevant Pages

  • Re: RPG DATE QUESTION
    ... if both dates are not zeros but I'm having trouble with 0 compare. ... There has to be a real easy way to do this I'm just missing it. ... want to do is just INZ the selection date to zeros but I get an error. ...
    (comp.sys.ibm.as400.misc)
  • Re: RPG DATE QUESTION
    ... if both dates are not zeros but I'm having trouble with 0 compare. ... There has to be a real easy way to do this I'm just missing it. ... want to do is just INZ the selection date to zeros but I get an error. ...
    (comp.sys.ibm.as400.misc)
  • RPG DATE QUESTION
    ... In an RPGLE program I'm trying to zero out a *ISO date not clear it. ... have some customer records that have 0 for a maintenance date and I ... want to do is just INZ the selection date to zeros but I get an error. ...
    (comp.sys.ibm.as400.misc)
  • Re: How do I replace numbers in a value NOT a formula?
    ... right click in the selection, ... I want to replace zeros with blanks. ... In the Find tab of the Find/Replace ...
    (microsoft.public.excel.misc)
  • Re: Need a DWORD value clarification
    ... Pflueger wrote: ... my question is missing from the thread. ... How do the zeros in the edit window match up with the ... zeros in the DWORD? ...
    (microsoft.public.windows.inetexplorer.ie6.browser)