Action command S (select) on dates/numbers

Chris Sharman Chris.Sharman@ccagroup.co.uk
Wed, 16 May 2001 11:15:55 +0100


>I just wonder if it is possible to use the S action for dates (or numbers) in
>combination with wildcards, i.e.
>- all invoices with '1999' in the date
>- all clients with '000' in the clients ID number
>- etc.
>I never find out if it's possible and

If they're really numbers, then NO, you can't (in general).
Come to that, you can't find from a date or number (the "@@" find syntax).

If your numbers are zoned, you can relatively easily redefine them as
characters, and then everything works.

If they're binary, redefinition is still possible, but setting up a suitable
pattern would be difficult or impossible, as non-printing characters are
disallowed in patterns.
It does work well with "@@" though (RMS).
Eg, for a field MYDATE (I typically use VMSDATE, but it would work the same for
ordinary PH dates): add a redefinition MYDATEC and an index MYDATEC to the
dictionary. DON'T rebuild the file - Powerhouse will use the MYDATE index
without complaining. Add an access lineto your screen:
	ACCESS VIA MYDATEC USING MYDATEC+"@@" REQUEST MYDATE

>(if yes) how to do it, or
>(if not) why not (Conrad, Bob) ?

Well, it would be possible to implement. OTOH, there is a workaround (use
character or zoned datatypes, even for date/numeric fields).
So it's a question of priorities, like always.

Chris
_______________________________________________________________________
Chris.Sharman@CCAgroup.co.uk		http://www.ccagroup.co.uk/
CCA Stationery Ltd, Eastway, Fulwood, Preston, Lancashire, PR2 9WS.


-----------------------------------------------------------------------

Any views expressed in this message are those of the sender and not
necessarily those of CCA Group.  The unauthorized use, disclosure,
copying or alteration of this message is forbidden.  The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed.  Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.