<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: wildcard expressions in DCL script in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177595#M1048</link>
    <description>All excellent options !!!&lt;BR /&gt;&lt;BR /&gt;Thanks to everyone.</description>
    <pubDate>Thu, 29 Jan 2004 11:47:07 GMT</pubDate>
    <dc:creator>Tim Nelson</dc:creator>
    <dc:date>2004-01-29T11:47:07Z</dc:date>
    <item>
      <title>wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177588#M1041</link>
      <description>Having trouble finding this easy one.&lt;BR /&gt;if var .eqs. "bob*" then goto A&lt;BR /&gt;&lt;BR /&gt;Looking to use wildcard in an if statement.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jan 2004 10:27:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177588#M1041</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2004-01-29T10:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177589#M1042</link>
      <description>Hi Tim,&lt;BR /&gt;wildcard works only with files (command DIR or lex F$SEARCH).&lt;BR /&gt;I wrote a C routine to manage LIKE operator; if you have a C compiler I can send you source code.&lt;BR /&gt; &lt;BR /&gt;Bye&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jan 2004 10:31:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177589#M1042</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-01-29T10:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177590#M1043</link>
      <description>if you want to do that, I think you have better options than the Dcl&lt;BR /&gt;- Perl for Vms&lt;BR /&gt;&lt;A href="http://www.sidhe.org/vmsperl/" target="_blank"&gt;http://www.sidhe.org/vmsperl/&lt;/A&gt;&lt;BR /&gt;- awk (in Tcpip examples, snmp subdirectory, you have gawk)&lt;BR /&gt;- Python for Vms  &lt;BR /&gt;vmspython.dyndns.org&lt;BR /&gt;&lt;BR /&gt;all have regular expression matching, in python&lt;BR /&gt;import re&lt;BR /&gt;re.compile...</description>
      <pubDate>Thu, 29 Jan 2004 10:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177590#M1043</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2004-01-29T10:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177591#M1044</link>
      <description>Thanks for the tips.. I was hoping I would not have to install / use another application.  &lt;BR /&gt;I did the following to get what I wanted.&lt;BR /&gt;&lt;BR /&gt;if f$extract(0,3,VAR) .eqs. "BOB" then goto&lt;BR /&gt;&lt;BR /&gt;better than nothing and works..&lt;BR /&gt;&lt;BR /&gt;Much appreciative.&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jan 2004 10:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177591#M1044</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2004-01-29T10:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177592#M1045</link>
      <description>Tim,&lt;BR /&gt;load this simple like routine written in DCL. It's very simple but can help you.&lt;BR /&gt; &lt;BR /&gt;Bye&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jan 2004 11:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177592#M1045</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-01-29T11:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177593#M1046</link>
      <description>&lt;BR /&gt;Your extract and compare is the classic solution, but the most rigid as the string must be in an exact location.&lt;BR /&gt;&lt;BR /&gt;Most folks will use F$LOCATE comparing the result with F$LENGTH to get at the "*string" leading wildcard effect.&lt;BR /&gt;&lt;BR /&gt;There are also creative usages of F$ELEMENT for stirng locating.&lt;BR /&gt;&lt;BR /&gt;And there is yet an other, not too well known, method to check for string matches in DCL through string subtraction (reduction)!&lt;BR /&gt;&lt;BR /&gt;$ test = "xxxxABCyyyy"&lt;BR /&gt;$ if test .eqs. (test - "ABC") then write sys$output "Not found"&lt;BR /&gt;$ if test .eqs. (test - "ABCD") then write sys$output "Not found"&lt;BR /&gt;Not found&lt;BR /&gt;$ x = test - "ABC"&lt;BR /&gt;$ show symb x&lt;BR /&gt;  X = "xxxxyyyy"&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Here is an other (a bit more widespread used)string subtract example:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output f$cvt() -&lt;BR /&gt; -" "-"-"-"-"-":"-":"-":"-"."&lt;BR /&gt;2004012911245313&lt;BR /&gt;&lt;BR /&gt;Enjoy!&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jan 2004 11:26:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177593#M1046</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-01-29T11:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177594#M1047</link>
      <description>...and if you need somthing better I can compile the prior example for you.&lt;BR /&gt; &lt;BR /&gt;Bye&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jan 2004 11:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177594#M1047</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-01-29T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177595#M1048</link>
      <description>All excellent options !!!&lt;BR /&gt;&lt;BR /&gt;Thanks to everyone.</description>
      <pubDate>Thu, 29 Jan 2004 11:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177595#M1048</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2004-01-29T11:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177596#M1049</link>
      <description>fwiw&lt;BR /&gt;a variation on &lt;BR /&gt;$ if f$extract(0,3,VAR) .eqs. "BOB" then goto A&lt;BR /&gt;would be&lt;BR /&gt;$ var=f$edit(var,"trim,compress,upcase")&lt;BR /&gt;$ if f$extract(0,3,VAR) .eqs. "BOB" then goto A&lt;BR /&gt;this gives me a level of predictability when it comes to leading spaces, multiple space/tabs, and upper/lower case.&lt;BR /&gt;hope it helps.&lt;BR /&gt;john&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Feb 2004 17:06:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177596#M1049</guid>
      <dc:creator>John Eerenberg</dc:creator>
      <dc:date>2004-02-02T17:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177597#M1050</link>
      <description>And if you favour to compact it into "one" function, use:&lt;BR /&gt;&lt;BR /&gt;$ if f$extract(0,3,f$edit(var,"trim,compress,upcase") .eqs. "BOB" then goto A&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Feb 2004 04:49:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177597#M1050</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-02-03T04:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177598#M1051</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Another thought. How about using f$locate..&lt;BR /&gt;&lt;BR /&gt;$ aa = "****BOB###"&lt;BR /&gt;$ bb = f$locate("BOB",aa)&lt;BR /&gt;$ sh symb bb&lt;BR /&gt;  BB = 4   Hex = 00000004  Octal = 00000000004&lt;BR /&gt;$ bb = f$locate("BILL",aa)&lt;BR /&gt;$ sh symb bb&lt;BR /&gt;  BB = 10   Hex = 0000000A  Octal = 00000000012&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;The result being the string location if found, else its length if not found.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Simon</description>
      <pubDate>Sun, 04 Apr 2004 20:40:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177598#M1051</guid>
      <dc:creator>Simon French</dc:creator>
      <dc:date>2004-04-04T20:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: wildcard expressions in DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177599#M1052</link>
      <description>See also&lt;BR /&gt;&lt;A href="http://www.openvms.org/stories.php?story=03/03/31/6547431" target="_blank"&gt;http://www.openvms.org/stories.php?story=03/03/31/6547431&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Apr 2004 03:38:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/wildcard-expressions-in-dcl-script/m-p/3177599#M1052</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-04-05T03:38:39Z</dc:date>
    </item>
  </channel>
</rss>

