Can metacharacters be used in a select prompt?
Hamilton, Allison
Allison.Hamilton@Cognos.COM
Fri, 28 Feb 2003 09:38:14 -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_01C2DF37.063A13E0
Content-Type: text/plain;
charset="iso-8859-1"
You can find documentation in the Qdesign manual, Customizing QUICK with
QKGO (in 8.xx manuals it is chapter 6) The Data Commands Screen, under the
pattern match character.
-----Original Message-----
From: Tim Cummings [mailto:tim.cummings@frequencymarketing.com]
Sent: Friday, February 28, 2003 8:52 AM
To: 'Peter Bateman'; chris.sharman@ccagroup.co.uk; Tim Cummings;
powerh-l@lists.swau.edu
Subject: RE: Can metacharacters be used in a select prompt?
Hey Chris,
Is the "%" for select prompts documented anywhere? I was looking through
the manual and found all of the metacharacter descriptions, but I saw
nothing on "%" in select prompts
Tim Cummings
Cummings Consulting
Cincinnati, OH
513-576-1182
-----Original Message-----
From: Peter Bateman [ mailto:shediac92@hotmail.com
<mailto:shediac92@hotmail.com> ]
Sent: Friday, February 28, 2003 7:25 AM
To: chris.sharman@ccagroup.co.uk; tim.cummings@frequencymarketing.com;
powerh-l@lists.swau.edu
Subject: RE: Can metacharacters be used in a select prompt?
Chris:
To put metacharacters in a prompt, I would put the characters
in a define ... parm prompt.
ie DEFINE match_string char * 30 = parm prompt "Enter selection"
ACCESS ...
SELECT IF " " = match_string &
OR MATCHPATTERN ( (NAME + ADDRESS), TRUNCATE (match_string))
>From: "Chris Sharman" <chris.sharman@ccagroup.co.uk>
>To: "Tim Cummings" <tim.cummings@frequencymarketing.com>,
><powerh-l@lists.swau.edu>
>Subject: RE: Can metacharacters be used in a select prompt?
>Date: Fri, 28 Feb 2003 08:41:08 -0000
>
>
> >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
>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.
>= = = = = = = = = = = = = = = = = = = = = = = = = = = =
>Mailing list: powerh-l@lists.swau.edu
>Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
>Unsubscribe: "unsubscribe" in message body to
>powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l
<http://lists.swau.edu/mailman/listinfo/powerh-l>
>This list is closed, thus to post to the list you must be a subscriber.
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
<http://join.msn.com/?page=features/junkmail>
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.
------_=_NextPart_001_01C2DF37.063A13E0
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: Can metacharacters be used in a select prompt?</TITLE>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=723493614-28022003><FONT face=Arial color=#0000ff size=2>You
can find documentation in the Qdesign manual, Customizing QUICK with QKGO (in
8.xx manuals it is chapter 6) The Data Commands Screen, under the pattern match
character.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Tim Cummings
[mailto:tim.cummings@frequencymarketing.com]<BR><B>Sent:</B> Friday, February
28, 2003 8:52 AM<BR><B>To:</B> 'Peter Bateman'; chris.sharman@ccagroup.co.uk;
Tim Cummings; powerh-l@lists.swau.edu<BR><B>Subject:</B> RE: Can
metacharacters be used in a select prompt?<BR><BR></FONT></DIV>
<P><FONT size=2>Hey Chris,</FONT> </P>
<P><FONT size=2>Is the "%" for select prompts documented anywhere? I was
looking through the manual and found all of the metacharacter descriptions,
but I saw nothing on "%" in select prompts
<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><BR>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: Peter
Bateman [<A
href="mailto:shediac92@hotmail.com">mailto:shediac92@hotmail.com</A>]</FONT>
<BR><FONT size=2>Sent: Friday, February 28, 2003 7:25 AM</FONT> <BR><FONT
size=2>To: chris.sharman@ccagroup.co.uk; 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>
<P><FONT size=2>Chris:</FONT> </P>
<P><FONT size=2>To put metacharacters in a prompt, I would put the
characters</FONT> <BR><FONT size=2>in a define ... parm prompt.</FONT> </P>
<P><FONT size=2>ie DEFINE match_string char * 30 = parm prompt "Enter
selection"</FONT> </P>
<P><FONT size=2>ACCESS ...</FONT> <BR><FONT size=2>SELECT IF " " =
match_string &</FONT> <BR><FONT
size=2> OR MATCHPATTERN ( (NAME +
ADDRESS), TRUNCATE (match_string))</FONT> </P><BR><BR><BR><BR><BR>
<P><FONT size=2>>From: "Chris Sharman"
<chris.sharman@ccagroup.co.uk></FONT> <BR><FONT size=2>>To: "Tim
Cummings" <tim.cummings@frequencymarketing.com>, </FONT><BR><FONT
size=2>><powerh-l@lists.swau.edu></FONT> <BR><FONT
size=2>>Subject: RE: Can metacharacters be used in a select prompt?</FONT>
<BR><FONT size=2>>Date: Fri, 28 Feb 2003 08:41:08 -0000</FONT> <BR><FONT
size=2>></FONT> <BR><FONT size=2>></FONT> <BR><FONT size=2>>
>Quick question: HP3000 PH 8.1.9 C2</FONT> <BR><FONT size=2>>
></FONT> <BR><FONT size=2>> >I know that you can use something like
bell@ in a field when supplying</FONT> <BR><FONT size=2>>select >values
in select mode, but is there a way to supply metacharacter</FONT> <BR><FONT
size=2>>patterns? I >know I can write the code to make this work
but I don't want</FONT> <BR><FONT size=2>>to write code. I >want
to use native PH to do the work.</FONT> <BR><FONT size=2>></FONT> <BR><FONT
size=2>>Yes.</FONT> <BR><FONT size=2>></FONT> <BR><FONT size=2>>The
user should enter % to say treat this expression as a pattern.</FONT>
<BR><FONT size=2>></FONT> <BR><FONT size=2>>eg "%^(#|^)* *" for an
identifier (alpha optionally followed by</FONT> <BR><FONT
size=2>>alphanumerics, with space padding to the end of the field).</FONT>
<BR><FONT size=2>></FONT> <BR><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>>"@" 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,</FONT> <BR><FONT size=2>>but</FONT> <BR><FONT size=2>>it
finds precious little.</FONT> <BR><FONT size=2>></FONT> <BR><FONT
size=2>>Chris</FONT> <BR><FONT size=2>></FONT> <BR><FONT
size=2>></FONT> <BR><FONT
size=2>>-----------------------------------------------------------------------</FONT>
<BR><FONT size=2>></FONT> <BR><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. The unauthorized use,
disclosure,</FONT> <BR><FONT size=2>>copying or alteration of this message
is forbidden <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. 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> <BR><FONT size=2>>= = = = = = = = = = = = = = = =
= = = = = = = = = = = =</FONT> <BR><FONT size=2>>Mailing list:
powerh-l@lists.swau.edu</FONT> <BR><FONT size=2>>Subscribe: "subscribe" in
message body to powerh-l-request@lists.swau.edu</FONT> <BR><FONT
size=2>>Unsubscribe: "unsubscribe" in message body to</FONT> <BR><FONT
size=2>>powerh-l-request@lists.swau.edu</FONT> <BR><FONT size=2>><A
target=_blank
href="http://lists.swau.edu/mailman/listinfo/powerh-l">http://lists.swau.edu/mailman/listinfo/powerh-l</A></FONT>
<BR><FONT size=2>>This list is closed, thus to post to the list you must be
a subscriber.</FONT> </P><BR>
<P><FONT
size=2>_________________________________________________________________</FONT>
<BR><FONT size=2>STOP MORE SPAM with the new MSN 8 and get 2 months
FREE* </FONT><BR><FONT size=2><A target=_blank
href="http://join.msn.com/?page=features/junkmail">http://join.msn.com/?page=features/junkmail</A></FONT>
</P></BLOCKQUOTE></FONT></FONT></BODY></HTML>
<BR>
<P><FONT SIZE=2 FACE="Arial">This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.</FONT></P>
------_=_NextPart_001_01C2DF37.063A13E0--