Can metacharacters be used in a select prompt?

Tim Cummings tim.cummings@frequencymarketing.com
Fri, 28 Feb 2003 08:48:16 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2DF30.0B66B5A0
Content-Type: text/plain;
	charset="iso-8859-1"

Thanks Chris


Tim Cummings
Cummings Consulting
Cincinnati, OH
513-576-1182

-----Original Message-----
From: Chris Sharman [mailto:chris.sharman@ccagroup.co.uk]
Sent: Friday, February 28, 2003 3:41 AM
To: tim.cummings@frequencymarketing.com; powerh-l@lists.swau.edu
Subject: RE: Can metacharacters be used in a select prompt?


>Quick question:  HP3000 PH 8.1.9 C2
>
>I know that you can use something like bell@ in a field when supplying
select >values in select mode, but is there a way to supply metacharacter
patterns?  I >know I can write the code to make this work but I don't want
to write code.  I >want to use native PH to do the work.

Yes.

The user should enter % to say treat this expression as a pattern.

eg "%^(#|^)* *" for an identifier (alpha optionally followed by
alphanumerics, with space padding to the end of the field).

On a similar line, does anyone know how to have metacharacters treated
normally when entering a choose parm ?
Eg, we have email addresses keyed, but the find doesn't work, because the
"@" always gets treated specially (PH 710G3, VMS 7.3). I'd thought it was
only special at the end of an expression, but that doesn't seem to be the
case. In fact I don't know what it means in the middle of an expression, but
it finds precious little.

Chris


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

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.

------_=_NextPart_001_01C2DF30.0B66B5A0
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Can metacharacters be used in a select prompt?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Thanks Chris</FONT>
</P>
<BR>

<P><FONT SIZE=2>Tim Cummings</FONT>
<BR><FONT SIZE=2>Cummings Consulting</FONT>
<BR><FONT SIZE=2>Cincinnati, OH</FONT>
<BR><FONT SIZE=2>513-576-1182</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Chris Sharman [<A HREF="mailto:chris.sharman@ccagroup.co.uk">mailto:chris.sharman@ccagroup.co.uk</A>]</FONT>
<BR><FONT SIZE=2>Sent: Friday, February 28, 2003 3:41 AM</FONT>
<BR><FONT SIZE=2>To: tim.cummings@frequencymarketing.com; powerh-l@lists.swau.edu</FONT>
<BR><FONT SIZE=2>Subject: RE: Can metacharacters be used in a select prompt?</FONT>
</P>
<BR>

<P><FONT SIZE=2>&gt;Quick question:&nbsp; HP3000 PH 8.1.9 C2</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;I know that you can use something like bell@ in a field when supplying</FONT>
<BR><FONT SIZE=2>select &gt;values in select mode, but is there a way to supply metacharacter</FONT>
<BR><FONT SIZE=2>patterns?&nbsp; I &gt;know I can write the code to make this work but I don't want</FONT>
<BR><FONT SIZE=2>to write code.&nbsp; I &gt;want to use native PH to do the work.</FONT>
</P>

<P><FONT SIZE=2>Yes.</FONT>
</P>

<P><FONT SIZE=2>The user should enter % to say treat this expression as a pattern.</FONT>
</P>

<P><FONT SIZE=2>eg &quot;%^(#|^)* *&quot; for an identifier (alpha optionally followed by</FONT>
<BR><FONT SIZE=2>alphanumerics, with space padding to the end of the field).</FONT>
</P>

<P><FONT SIZE=2>On a similar line, does anyone know how to have metacharacters treated</FONT>
<BR><FONT SIZE=2>normally when entering a choose parm ?</FONT>
<BR><FONT SIZE=2>Eg, we have email addresses keyed, but the find doesn't work, because the</FONT>
<BR><FONT SIZE=2>&quot;@&quot; always gets treated specially (PH 710G3, VMS 7.3). I'd thought it was</FONT>
<BR><FONT SIZE=2>only special at the end of an expression, but that doesn't seem to be the</FONT>
<BR><FONT SIZE=2>case. In fact I don't know what it means in the middle of an expression, but</FONT>
<BR><FONT SIZE=2>it finds precious little.</FONT>
</P>

<P><FONT SIZE=2>Chris</FONT>
</P>
<BR>

<P><FONT SIZE=2>-----------------------------------------------------------------------</FONT>
</P>

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

</BODY>
</HTML>
------_=_NextPart_001_01C2DF30.0B66B5A0--