Can someone help with this ….
cmd=Select File if date GE "':D1:'" and LE "':D2:'" 'statuscode=Set_Status(0)SCmd=CmdCall RLIST(SCmd,"5","","","")If Get_Status(statuscode) Thenxmsg=statuscodeGosub ErrMsgGoto EndOfJobEnd*
LoopReadnext @ID else NoMore=1Until NoMore doRead ...Repeat*
My items returned from the Rlist command are far greater than they
should be. Should I not use a target of 5? Should I get the save
list and then process?
Two things - BETWEEN is better than GE and LE - much quicker if the field is indexed. Strictly the GE LE syntax requires [b]with date GE X and with date LE Y[b].
World Leaders in all things RevSoft
Andrew, thanks for the response.
I tried SELECT the file WITH DATE GE "XX/XX/XXXX" AND WITH DATE LE "XX/XX/XXXX" and still got more results than were correct.
In another utility I have if I LIST the file WITH DATE GE "XX/XX/XXXX" AND WITH DATE LE "XX/XX/XXXX" I get the
correct items returned.
I am still confused…
So am I. LIST runs through the same process as SELECT to retrieve data, so unless you're changing dates or somehow have an active list there, the results should be identical.
Do me a favor. Change the statement to GT date-1 and LT date+1. Effectively it's the same results, but I'm testing a probably incorrect theory.
Also, try it both ways but add the CASEINSENS modifier before the field name.
Aaron,
I actually changed it to WITH DATE1 BETWEEN "XX/XX/XXXX" AND "XX/XX/XXXX" and it worked but am still puzzled as to why the other way did not.
Thanks for the respose.
bruce
And the second thing?
There are three types of accountant - first, the ones who can add, and second, those that can't.
It's kinda hard to explain, but basically it's the effects of GENRTP20_SUB and $RTP21 and how every modifier has a very special meaning.