Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Don't discount flying pigs before you have good air defense." -- jvh@clinet.FI


computers / comp.os.vms / SEARCH ''

SubjectAuthor
* SEARCH ''Phillip Helbig (undress to reply
+- Re: SEARCH ''Steven Schweda
+* Re: SEARCH ''Hein RMS van den Heuvel
|`* Re: SEARCH ''Hein RMS van den Heuvel
| `- Re: SEARCH ''Phillip Helbig (undress to reply
+* Re: SEARCH ''hb
|`- Re: SEARCH ''Phillip Helbig (undress to reply
+* Re: SEARCH ''Stephen Hoffman
|`* Re: SEARCH ''hb
| `* Re: SEARCH ''Stephen Hoffman
|  `* Re: SEARCH ''hb
|   `* Re: SEARCH ''Stephen Hoffman
|    `* Re: SEARCH ''Phillip Helbig (undress to reply
|     +* Re: SEARCH ''Stephen Hoffman
|     |+* Re: SEARCH ''Bill Gunshannon
|     ||`- Re: SEARCH ''Arne Vajhøj
|     |+- Re: SEARCH ''Jan-Erik Söderholm
|     |`* Re: SEARCH ''Phillip Helbig (undress to reply
|     | `* Re: SEARCH ''Arne Vajhøj
|     |  `* Re: SEARCH ''Phillip Helbig (undress to reply
|     |   `- Re: SEARCH ''Arne Vajhøj
|     +- Re: SEARCH ''Simon Clubley
|     `- Re: SEARCH ''Tad Winters
`* Re: SEARCH ''David Jones
 `* Re: SEARCH ''George Cornelius
  `- Re: SEARCH ''George Cornelius

Pages:12
SEARCH ''

<ss4ktr$123e$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20093&group=comp.os.vms#20093

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!tT05QBSJBp/u6XVsQDZppw.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.os.vms
Subject: SEARCH ''
Date: Mon, 17 Jan 2022 20:52:11 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <ss4ktr$123e$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="34926"; posting-host="tT05QBSJBp/u6XVsQDZppw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Mon, 17 Jan 2022 20:52 UTC

I had occasion to SEARCH for the string '' in a file.

Is there any way to do this? (It gets expanded as an empty symbol; I
don't know how to prevent that.)

Related question: SEARCH/STAT gives me the record count, not the number
of times the string appears in the file, so they are not the same if it
occurs more than once on one line. Is there any way to get that
information from SEARCH? (A workaround is to replace the string with
itself in EDT and look at the count displayed.)

Re: SEARCH ''

<257c8f34-7e38-4d28-97cf-a354fd0fc196n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20094&group=comp.os.vms#20094

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:5a07:: with SMTP id n7mr19033661qta.197.1642456543362;
Mon, 17 Jan 2022 13:55:43 -0800 (PST)
X-Received: by 2002:a37:452:: with SMTP id 79mr16041542qke.503.1642456543198;
Mon, 17 Jan 2022 13:55:43 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 17 Jan 2022 13:55:43 -0800 (PST)
In-Reply-To: <ss4ktr$123e$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=76.76.60.100; posting-account=OjKUgAkAAAAXAqdVEKd-Gc8RltEUx3Xq
NNTP-Posting-Host: 76.76.60.100
References: <ss4ktr$123e$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <257c8f34-7e38-4d28-97cf-a354fd0fc196n@googlegroups.com>
Subject: Re: SEARCH ''
From: sms.anti...@gmail.com (Steven Schweda)
Injection-Date: Mon, 17 Jan 2022 21:55:43 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2064
 by: Steven Schweda - Mon, 17 Jan 2022 21:55 UTC

> I had occasion to SEARCH for the string '' in a file.
>
> Is there any way to do this? (It gets expanded as an empty symbol; I
> don't know how to prevent that.)

I know of none. Zip would like to quote or escape all special
characters when it creates a command line to use with system() (for its
"-T[T]" option, to run UnZip to test an archive), but I couldn't see a
way to do this. Hence this comment in zip.c:quote_arg():

* On VMS, quoted double apostrophes are also special. Currently not
* handled. (How? Quotation marks are needed for (upper-)case
* preservation. Double apostrophes in quotation marks are interpreted
* (symbol evaluation). SMS sees no way to handle "fr''ed". "fr'""'ed"
* becomes >fr'"'ed<, for example.) Not a problem for file specs, but
* imposes a restriction on passwords.

If there _is_ a way, then please let me know.

(Building an argv[], and not using system(), would be one way in the
Zip case, but a general DCL method would be nice to have.)

Re: SEARCH ''

<9600cf7e-2daa-42b6-af3e-3952b6f6f71an@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20095&group=comp.os.vms#20095

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:40c8:: with SMTP id g8mr3419280qko.495.1642458035541;
Mon, 17 Jan 2022 14:20:35 -0800 (PST)
X-Received: by 2002:a05:622a:10f:: with SMTP id u15mr2091174qtw.117.1642458035364;
Mon, 17 Jan 2022 14:20:35 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 17 Jan 2022 14:20:35 -0800 (PST)
In-Reply-To: <ss4ktr$123e$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=24.147.72.155; posting-account=U1iMPAoAAAC9r8wm0KaW63EcF8sfjFeH
NNTP-Posting-Host: 24.147.72.155
References: <ss4ktr$123e$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9600cf7e-2daa-42b6-af3e-3952b6f6f71an@googlegroups.com>
Subject: Re: SEARCH ''
From: heinvand...@gmail.com (Hein RMS van den Heuvel)
Injection-Date: Mon, 17 Jan 2022 22:20:35 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1962
 by: Hein RMS van den Heu - Mon, 17 Jan 2022 22:20 UTC

On Monday, January 17, 2022 at 3:52:13 PM UTC-5, Phillip Helbig (undress to reply) wrote:
> I had occasion to SEARCH for the string '' in a file.
>
> Is there any way to do this? (It gets expanded as an empty symbol; I
> don't know how to prevent that.)
>
> Related question: SEARCH/STAT gives me the record count, not the number
> of times the string appears in the file, so they are not the same if it
> occurs more than once on one line. Is there any way to get that
> information from SEARCH? (A workaround is to replace the string with
> itself in EDT and look at the count displayed.)

Well my friend. You appear to have missed the DCL 101 class.
To provide a double quote, double double up!

$ cre tmp.tmp
qwfqwe
werfqwerf
qwerf"erfwerf
werfqwerf
Exit
$ search tmp.tmp """" ! 3 or 4 double quotes, as the final double quote is option (DCL 102)
qwerf"erfwerf

Re: SEARCH ''

<127d2859-d2fd-44ea-bd0e-f094a683de58n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20096&group=comp.os.vms#20096

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:b2c1:: with SMTP id b184mr16271336qkf.53.1642458469637;
Mon, 17 Jan 2022 14:27:49 -0800 (PST)
X-Received: by 2002:ac8:584c:: with SMTP id h12mr6170154qth.540.1642458469421;
Mon, 17 Jan 2022 14:27:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Mon, 17 Jan 2022 14:27:49 -0800 (PST)
In-Reply-To: <9600cf7e-2daa-42b6-af3e-3952b6f6f71an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.147.72.155; posting-account=U1iMPAoAAAC9r8wm0KaW63EcF8sfjFeH
NNTP-Posting-Host: 24.147.72.155
References: <ss4ktr$123e$1@gioia.aioe.org> <9600cf7e-2daa-42b6-af3e-3952b6f6f71an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <127d2859-d2fd-44ea-bd0e-f094a683de58n@googlegroups.com>
Subject: Re: SEARCH ''
From: heinvand...@gmail.com (Hein RMS van den Heuvel)
Injection-Date: Mon, 17 Jan 2022 22:27:49 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1645
 by: Hein RMS van den Heu - Mon, 17 Jan 2022 22:27 UTC

On Monday, January 17, 2022 at 5:20:36 PM UTC-5, Hein RMS van den Heuvel wrote:
> On Monday, January 17, 2022 at 3:52:13 PM UTC-5, Phillip Helbig (undress to reply) wrote:
> > I had occasion to SEARCH for the string '' in a file.

> To provide a double quote, double double up!

Nevermind.... My reader suggested you were looking for a double-quote.
Once pasted in a terminal window i could see two single quotes. It would have been nice/smart to spell that out.
Steven saw it, I did not.

Hein

Re: SEARCH ''

<ss4r90$1q7m$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20097&group=comp.os.vms#20097

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!HUSFR8t1SXX2T7tkc8kzKw.user.46.165.242.91.POSTED!not-for-mail
From: end...@inter.net (hb)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Mon, 17 Jan 2022 23:40:32 +0100
Organization: Aioe.org NNTP Server
Message-ID: <ss4r90$1q7m$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="59638"; posting-host="HUSFR8t1SXX2T7tkc8kzKw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: hb - Mon, 17 Jan 2022 22:40 UTC

On 1/17/22 21:52, Phillip Helbig (undress to reply) wrote:
> I had occasion to SEARCH for the string '' in a file.
>
> Is there any way to do this? (It gets expanded as an empty symbol; I
> don't know how to prevent that.)
>
> Related question: SEARCH/STAT gives me the record count, not the number
> of times the string appears in the file, so they are not the same if it
> occurs more than once on one line. Is there any way to get that
> information from SEARCH? (A workaround is to replace the string with
> itself in EDT and look at the count displayed.)
>

Maybe this helps:
$ cre x.txt
quote '
two quotes ''
Exit
$ $ one:="'"
$ two=one+one
$ search x.txt &two
two quotes ''
$

Re: SEARCH ''

<ss5j3b$1cl4$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20102&group=comp.os.vms#20102

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!tT05QBSJBp/u6XVsQDZppw.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Tue, 18 Jan 2022 05:27:08 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <ss5j3b$1cl4$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org> <9600cf7e-2daa-42b6-af3e-3952b6f6f71an@googlegroups.com> <127d2859-d2fd-44ea-bd0e-f094a683de58n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="45732"; posting-host="tT05QBSJBp/u6XVsQDZppw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Tue, 18 Jan 2022 05:27 UTC

In article <127d2859-d2fd-44ea-bd0e-f094a683de58n@googlegroups.com>,
Hein RMS van den Heuvel <heinvandenheuvel@gmail.com> writes:

> On Monday, January 17, 2022 at 5:20:36 PM UTC-5, Hein RMS van den Heuvel wrote:
> > On Monday, January 17, 2022 at 3:52:13 PM UTC-5, Phillip Helbig (undress to reply) wrote:
> > > I had occasion to SEARCH for the string '' in a file.
>
> > To provide a double quote, double double up!
>
> Nevermind.... My reader suggested you were looking for a double-quote.
> Once pasted in a terminal window i could see two single quotes. It would have been nice/smart to spell that out.
> Steven saw it, I did not.

No ambiguity when reading in a DECterm. :-)

Re: SEARCH ''

<ss5jb9$1f4f$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20103&group=comp.os.vms#20103

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!tT05QBSJBp/u6XVsQDZppw.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Tue, 18 Jan 2022 05:31:21 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <ss5jb9$1f4f$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss4r90$1q7m$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="48271"; posting-host="tT05QBSJBp/u6XVsQDZppw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Tue, 18 Jan 2022 05:31 UTC

In article <ss4r90$1q7m$1@gioia.aioe.org>, hb <end.of@inter.net> writes:

> On 1/17/22 21:52, Phillip Helbig (undress to reply) wrote:
> > I had occasion to SEARCH for the string '' in a file.
> >
> > Is there any way to do this? (It gets expanded as an empty symbol; I
> > don't know how to prevent that.)

> Maybe this helps:
> $ cre x.txt
> quote '
> two quotes ''
> Exit
> $
> $ one:="'"
> $ two=one+one
> $ search x.txt &two
> two quotes ''
> $

Brilliant! Works great!

Re: SEARCH ''

<ss6nnp$us1$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20110&group=comp.os.vms#20110

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Tue, 18 Jan 2022 10:52:25 -0500
Organization: HoffmanLabs LLC
Lines: 27
Message-ID: <ss6nnp$us1$1@dont-email.me>
References: <ss4ktr$123e$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="fdf98a79497e118135e1f4194533bd5f";
logging-data="31617"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RjKbIsoX/YpS6msV/vr5oZ7J1VvPgoFs="
User-Agent: Unison/2.2
Cancel-Lock: sha1:MQSqGGjIKUrBwYMFMoLJDZShCD4=
 by: Stephen Hoffman - Tue, 18 Jan 2022 15:52 UTC

On 2022-01-17 20:52:11 +0000, Phillip Helbig (undress to reply said:

> I had occasion to SEARCH for the string '' in a file.

$
$ type x.com
$ ps = f$getsyi("PAGE_SIZE")
$ write sys$output "Page size: ''ps'"
$ exit
$ @x.com
Page size: 8192
$ search x.com "'" + "'"
$ write sys$output "Page size: ''ps'"
$

grep or find or other tools will work here too, when those are
installed and available.

DCL doesn't have an equivalent to the backslash
escape-the-next-character syntax present in some other contexts.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: SEARCH ''

<ss6t7f$t0q$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20112&group=comp.os.vms#20112

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!FPJt44C8tU+6Ws0HpL8elA.user.46.165.242.91.POSTED!not-for-mail
From: end...@inter.net (hb)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Tue, 18 Jan 2022 18:26:06 +0100
Organization: Aioe.org NNTP Server
Message-ID: <ss6t7f$t0q$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="29722"; posting-host="FPJt44C8tU+6Ws0HpL8elA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: hb - Tue, 18 Jan 2022 17:26 UTC

On 1/18/22 16:52, Stephen Hoffman wrote:
> $ search x.com "'" + "'"

SEARCH (or DCL - which seems more likely) uses "+" as a list separator,
so the above command is the same as
search x.com "'" , "'"
That is, it finds single quotes.

> grep or find or other tools will work here too, when those are installed
> and available.
>
> DCL doesn't have an equivalent to the backslash
> escape-the-next-character syntax present in some other contexts.
>

Using grep on *nix for this search is straight forward: grep "''" x.com
On VMS it's not that obvious: grep "[']\{2\}" x.com
but there may be an easier way to do that, which I missed.

Re: SEARCH ''

<b95bbcf6-db8b-446a-843e-101da63cdb8dn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20119&group=comp.os.vms#20119

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:469e:: with SMTP id bq30mr19247224qkb.645.1642539943098;
Tue, 18 Jan 2022 13:05:43 -0800 (PST)
X-Received: by 2002:a05:620a:1448:: with SMTP id i8mr19783075qkl.727.1642539942952;
Tue, 18 Jan 2022 13:05:42 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Tue, 18 Jan 2022 13:05:42 -0800 (PST)
In-Reply-To: <ss4ktr$123e$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=74.140.8.188; posting-account=CO-_tAoAAACjjs2KLAw3xVKCy6Z_J3VK
NNTP-Posting-Host: 74.140.8.188
References: <ss4ktr$123e$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b95bbcf6-db8b-446a-843e-101da63cdb8dn@googlegroups.com>
Subject: Re: SEARCH ''
From: osuvma...@gmail.com (David Jones)
Injection-Date: Tue, 18 Jan 2022 21:05:43 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 8
 by: David Jones - Tue, 18 Jan 2022 21:05 UTC

On Monday, January 17, 2022 at 3:52:13 PM UTC-5, Phillip Helbig (undress to reply) wrote:
> I had occasion to SEARCH for the string '' in a file.
>
> Is there any way to do this? (It gets expanded as an empty symbol; I
> don't know how to prevent that.)
>

$ dsq = "'" + "'" ! make symbol containing 2 single quotes
$ search myfile.txt &dsq

Re: SEARCH ''

<ss7l2v$62v$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20120&group=comp.os.vms#20120

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Tue, 18 Jan 2022 19:13:19 -0500
Organization: HoffmanLabs LLC
Lines: 55
Message-ID: <ss7l2v$62v$1@dont-email.me>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me> <ss6t7f$t0q$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="d6b67b24fccb214d02c7732499d38ed6";
logging-data="6239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185fb4tOBhv4g97zboaBZC72tHV+7BMRuo="
User-Agent: Unison/2.2
Cancel-Lock: sha1:PDUF3FLENv4TwcQCgEMvkDwTxJY=
 by: Stephen Hoffman - Wed, 19 Jan 2022 00:13 UTC

On 2022-01-18 17:26:06 +0000, hb said:

> On 1/18/22 16:52, Stephen Hoffman wrote:
>> $ search x.com "'" + "'"
>
> SEARCH (or DCL - which seems more likely) uses "+" as a list separator,
> so the above command is the same as
> search x.com "'" , "'"
> That is, it finds single quotes.

Yeah, I see that now.

I'd forgotten how limited DCL was.

Ah, well.

$ pipe x="'" + "'" | search x.com &x
$ write sys$output "Page size: ''ps'"

>
>> grep or find or other tools will work here too, when those are
>> installed and available.
>>
>> DCL doesn't have an equivalent to the backslash
>> escape-the-next-character syntax present in some other contexts.
>>
>
> Using grep on *nix for this search is straight forward: grep "''" x.com
> On VMS it's not that obvious: grep "[']\{2\}" x.com
> but there may be an easier way to do that, which I missed.

Works the same.

$ run gnv$gnu:[bin]bash
bash$ grep "''" x.com
$ write sys$output "Page size: ''ps'"
bash$

That avoids using DCL input processing, which avoids the DCL symbol
substitution.

Can't say I find DCL particularly competitive for text-processing
tasks, though it is available in the default install.

One of the arguable advantages of DCL over most shells is the
default-fail error handling. Most shells have to request that. And set
-e is its own fine mess in bash. Though trap is ~close to ON, and a bit
more flexible.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: SEARCH ''

<ss8okj$1fok$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20124&group=comp.os.vms#20124

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!HUSFR8t1SXX2T7tkc8kzKw.user.46.165.242.91.POSTED!not-for-mail
From: end...@inter.net (hb)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Wed, 19 Jan 2022 11:20:02 +0100
Organization: Aioe.org NNTP Server
Message-ID: <ss8okj$1fok$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me>
<ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="48916"; posting-host="HUSFR8t1SXX2T7tkc8kzKw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: hb - Wed, 19 Jan 2022 10:20 UTC

On 1/19/22 01:13, Stephen Hoffman wrote:
FWIW,
> $ pipe x="'" + "'" | search x.com &x
does not work:
%DCL-W-UNDSYM, undefined symbol - check validity and spelling

You probably had a symbol x defined outside of the pipe command.

$ x:=exit
$ pipe x="'" + "'" | search x.com &x
$ exit

A working pipe command is:
$ pipe x="'" + "'" ; search x.com &x

And that sets/overwrites the symbol x, which can be avoided:
$ x:=exit
$ pipe ( x="'" + "'" ; search x.com &x )
$ write sys$output "Page size: ''ps'"

Re: SEARCH ''

<ss98fn$ahb$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20126&group=comp.os.vms#20126

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Wed, 19 Jan 2022 09:50:31 -0500
Organization: HoffmanLabs LLC
Lines: 29
Message-ID: <ss98fn$ahb$1@dont-email.me>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me> <ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me> <ss8okj$1fok$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="d6b67b24fccb214d02c7732499d38ed6";
logging-data="10795"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+b+dibmpYU8FbaYtM/LJnSHWir/G4zbLo="
User-Agent: Unison/2.2
Cancel-Lock: sha1:arBdx+rPaFeVbqC86xnLUPLMLHk=
 by: Stephen Hoffman - Wed, 19 Jan 2022 14:50 UTC

On 2022-01-19 10:20:02 +0000, hb said:

> On 1/19/22 01:13, Stephen Hoffman wrote:
> FWIW,
>> $ pipe x="'" + "'" | search x.com &x
> does not work:
> %DCL-W-UNDSYM, undefined symbol - check validity and spelling
>
> You probably had a symbol x defined outside of the pipe command.
>
> $ x:=exit
> $ pipe x="'" + "'" | search x.com &x
> $ exit
>
> A working pipe command is:
> $ pipe x="'" + "'" ; search x.com &x
>
> And that sets/overwrites the symbol x, which can be avoided:
> $ x:=exit
> $ pipe ( x="'" + "'" ; search x.com &x )
> $ write sys$output "Page size: ''ps'"

Ah, well. Phillip, you're on your own.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: SEARCH ''

<ss9at8$m75$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20127&group=comp.os.vms#20127

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!tT05QBSJBp/u6XVsQDZppw.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Wed, 19 Jan 2022 15:31:52 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <ss9at8$m75$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me> <ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me> <ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="22757"; posting-host="tT05QBSJBp/u6XVsQDZppw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Wed, 19 Jan 2022 15:31 UTC

In article <ss98fn$ahb$1@dont-email.me>, Stephen Hoffman
<seaohveh@hoffmanlabs.invalid> writes:

> Ah, well. Phillip, you're on your own.

A couple of people had already posted the proper answer:

$ QUOTE = "'"
$ QUOTES = QUOTE + QUOTE
$ SEARCH <file> &QUOTES

Re: SEARCH ''

<ss9ba0$vb7$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20128&group=comp.os.vms#20128

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Wed, 19 Jan 2022 10:38:40 -0500
Organization: HoffmanLabs LLC
Lines: 20
Message-ID: <ss9ba0$vb7$1@dont-email.me>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me> <ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me> <ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me> <ss9at8$m75$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="d6b67b24fccb214d02c7732499d38ed6";
logging-data="32103"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18o5WkpHGtbaO5aXiuX+nsO1aMEZrf3/c4="
User-Agent: Unison/2.2
Cancel-Lock: sha1:VdD3AfucQHebe8GZKjI3VizcViM=
 by: Stephen Hoffman - Wed, 19 Jan 2022 15:38 UTC

On 2022-01-19 15:31:52 +0000, Phillip Helbig (undress to reply said:

> In article <ss98fn$ahb$1@dont-email.me>, Stephen Hoffman
> <seaohveh@hoffmanlabs.invalid> writes:
>
>> Ah, well. Phillip, you're on your own.
>
> A couple of people had already posted the proper answer:

That's what this does, but (mistakes aside) in one line.

But for some of us, the proper answer is probably closer to "don't use DCL".

DCL, FORTRAN, C, and some other common OpenVMS programming languages
just aren't very good at strings.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: SEARCH ''

<j4qqumFedqgU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20129&group=comp.os.vms#20129

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Wed, 19 Jan 2022 11:01:26 -0500
Lines: 26
Message-ID: <j4qqumFedqgU1@mid.individual.net>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me>
<ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me>
<ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me>
<ss9at8$m75$1@gioia.aioe.org> <ss9ba0$vb7$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net YigFJHWadqO86noG+BtHFQ1XcDQA6FPSAWcsH8d+C3BlvBPQ/Q
Cancel-Lock: sha1:6pwjoh+11GxSR+F1vEe3z2iEVQE=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
In-Reply-To: <ss9ba0$vb7$1@dont-email.me>
Content-Language: en-US
 by: Bill Gunshannon - Wed, 19 Jan 2022 16:01 UTC

On 1/19/22 10:38 AM, Stephen Hoffman wrote:
> On 2022-01-19 15:31:52 +0000, Phillip Helbig (undress to reply said:
>
>> In article <ss98fn$ahb$1@dont-email.me>, Stephen Hoffman
>> <seaohveh@hoffmanlabs.invalid> writes:
>>
>>> Ah, well. Phillip, you're on your own.
>>
>> A couple of people had already posted the proper answer:
>
> That's what this does, but (mistakes aside) in one line.
>
> But for some of us, the proper answer is probably closer to "don't use
> DCL".
>
> DCL, FORTRAN, C, and some other common OpenVMS programming languages
> just aren't very good at strings.
>
>

This might have been sarcasm, but why would you think FORTRAN an C
"aren't very good at strings". Even FORTRAN IV could do strings
with only a little coaxing. :-)

bill

Re: SEARCH ''

<ss9d23$4am$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20130&group=comp.os.vms#20130

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Wed, 19 Jan 2022 17:08:35 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ss9d23$4am$1@dont-email.me>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me>
<ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me>
<ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me>
<ss9at8$m75$1@gioia.aioe.org> <ss9ba0$vb7$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 19 Jan 2022 16:08:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6013f5f2dab2cb0ba21783fbfa36a3dd";
logging-data="4438"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ll3B9hwn6AOTSiah2R/6Z"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:cOANqjh9GiZiVCU7uVbxdbrxY6Y=
In-Reply-To: <ss9ba0$vb7$1@dont-email.me>
Content-Language: sv
 by: Jan-Erik Söderholm - Wed, 19 Jan 2022 16:08 UTC

Den 2022-01-19 kl. 16:38, skrev Stephen Hoffman:
> On 2022-01-19 15:31:52 +0000, Phillip Helbig (undress to reply said:
>
>> In article <ss98fn$ahb$1@dont-email.me>, Stephen Hoffman
>> <seaohveh@hoffmanlabs.invalid> writes:
>>
>>> Ah, well. Phillip, you're on your own.
>>
>> A couple of people had already posted the proper answer:
>
> That's what this does, but (mistakes aside) in one line.
>
> But for some of us, the proper answer is probably closer to "don't use DCL".
>
> DCL, FORTRAN, C, and some other common OpenVMS programming languages just
> aren't very good at strings.
>
>

If you have a question about a spcific DCL syntax, why would
not a DCL example be the "proper answer".

Funny how it is someone else fault (or DCLs fault) when you
(once) happens to come up with a wrong answer.

Re: SEARCH ''

<ss9h98$c7u$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20131&group=comp.os.vms#20131

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!tT05QBSJBp/u6XVsQDZppw.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Wed, 19 Jan 2022 17:20:40 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <ss9h98$c7u$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me> <ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me> <ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me> <ss9at8$m75$1@gioia.aioe.org> <ss9ba0$vb7$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="12542"; posting-host="tT05QBSJBp/u6XVsQDZppw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Wed, 19 Jan 2022 17:20 UTC

In article <ss9ba0$vb7$1@dont-email.me>, Stephen Hoffman
<seaohveh@hoffmanlabs.invalid> writes:

> DCL, FORTRAN, C, and some other common OpenVMS programming languages
> just aren't very good at strings.

I used to write presentations by hand on transparencies. Then I did
them in LaTeX and printed them out on transparencies (for overhead
projectors). Then I displayed the PDF produced from LaTeX via a
projector. Then I added the functionality to build up a slide bullet
point by bullet point (by using the \include command in LaTeX; no
content is present more than once in the source code). I had seen other
people do that but had no idea how it was done (probably similar to how
I do it: multiple pages, and each page has one more point than the
previous one). Then I added the full pages after the transparencies.
That makes it easy to "go back to slide 5"; I've seen so many people
paging through their entire presentation line by line. My guess is that
PowerPoint or whatever could do that as well, but strangely I've rarely
if ever seen it.

Then---drumroll, please---I moved from writing the LaTeX by hand (from
templates, of course), with all the \include commands, to writing a
normal LaTeX document which is then PARSED BY A DCL SCRIPT to create
usually several hundred pages of LaTeX source.

Later I added the possibility to add a header or footer to each slide,
also via the DCL script.

I have seen DCL procedures with tens of thousands of lines. :-)

Re: SEARCH ''

<ss9knj$764$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20133&group=comp.os.vms#20133

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: club...@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Wed, 19 Jan 2022 18:19:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <ss9knj$764$1@dont-email.me>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me> <ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me> <ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me> <ss9at8$m75$1@gioia.aioe.org>
Injection-Date: Wed, 19 Jan 2022 18:19:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f6e5f92a1e11244fc03b641d2a1d369a";
logging-data="7364"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8qkA/lK/q6FaVOz0Hlz2Jcc7Z3GZpIuQ="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:VSOx/MBUjHx5slLIejdsUaYZqKw=
 by: Simon Clubley - Wed, 19 Jan 2022 18:19 UTC

On 2022-01-19, Phillip Helbig (undress to reply) <helbig@asclothestro.multivax.de> wrote:
> In article <ss98fn$ahb$1@dont-email.me>, Stephen Hoffman
><seaohveh@hoffmanlabs.invalid> writes:
>
>> Ah, well. Phillip, you're on your own.
>
> A couple of people had already posted the proper answer:
>
> $ QUOTE = "'"
> $ QUOTES = QUOTE + QUOTE
> $ SEARCH <file> &QUOTES
>

Only in DCL, would _that_ be considered the correct answer. :-)

Time for another enhancement suggestion...

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: SEARCH ''

<61e8580e$0$700$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20134&group=comp.os.vms#20134

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 19 Jan 2022 13:27:23 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: SEARCH ''
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me>
<ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me>
<ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me>
<ss9at8$m75$1@gioia.aioe.org> <ss9ba0$vb7$1@dont-email.me>
<j4qqumFedqgU1@mid.individual.net>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <j4qqumFedqgU1@mid.individual.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 32
Message-ID: <61e8580e$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 5e1ea536.news.sunsite.dk
X-Trace: 1642616846 news.sunsite.dk 700 arne@vajhoej.dk/68.9.63.232:61262
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 19 Jan 2022 18:27 UTC

On 1/19/2022 11:01 AM, Bill Gunshannon wrote:
> On 1/19/22 10:38 AM, Stephen Hoffman wrote:
>> On 2022-01-19 15:31:52 +0000, Phillip Helbig (undress to reply said:
>>
>>> In article <ss98fn$ahb$1@dont-email.me>, Stephen Hoffman
>>> <seaohveh@hoffmanlabs.invalid> writes:
>>>
>>>> Ah, well. Phillip, you're on your own.
>>>
>>> A couple of people had already posted the proper answer:
>>
>> That's what this does, but (mistakes aside) in one line.
>>
>> But for some of us, the proper answer is probably closer to "don't use
>> DCL".
>>
>> DCL, FORTRAN, C, and some other common OpenVMS programming languages
>> just aren't very good at strings.
>
> This might have been sarcasm, but why would you think FORTRAN an C
> "aren't very good at strings".

They can do strings but they are not great with strings.

variable rich string protection
length function against out of
strings library range access
Fortran - - -
C - + -

Arne

Re: SEARCH ''

<61e85855$0$700$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20135&group=comp.os.vms#20135

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 19 Jan 2022 13:28:33 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: SEARCH ''
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me>
<ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me>
<ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me>
<ss9at8$m75$1@gioia.aioe.org> <ss9ba0$vb7$1@dont-email.me>
<ss9h98$c7u$1@gioia.aioe.org>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <ss9h98$c7u$1@gioia.aioe.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 21
Message-ID: <61e85855$0$700$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 5e1ea536.news.sunsite.dk
X-Trace: 1642616917 news.sunsite.dk 700 arne@vajhoej.dk/68.9.63.232:61262
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Wed, 19 Jan 2022 18:28 UTC

On 1/19/2022 12:20 PM, Phillip Helbig (undress to reply) wrote:
> In article <ss9ba0$vb7$1@dont-email.me>, Stephen Hoffman
> <seaohveh@hoffmanlabs.invalid> writes:
>> DCL, FORTRAN, C, and some other common OpenVMS programming languages
>> just aren't very good at strings.

> Then---drumroll, please---I moved from writing the LaTeX by hand (from
> templates, of course), with all the \include commands, to writing a
> normal LaTeX document which is then PARSED BY A DCL SCRIPT to create
> usually several hundred pages of LaTeX source.
>
> Later I added the possibility to add a header or footer to each slide,
> also via the DCL script.
>
> I have seen DCL procedures with tens of thousands of lines. :-)

Python or Perl would likely have been both shorter and faster.

Arne

Re: SEARCH ''

<ss9r8t$1idd$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20139&group=comp.os.vms#20139

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!tT05QBSJBp/u6XVsQDZppw.user.46.165.242.75.POSTED!not-for-mail
From: hel...@asclothestro.multivax.de (Phillip Helbig (undress to reply)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Wed, 19 Jan 2022 20:11:09 -0000 (UTC)
Organization: Multivax C&R
Message-ID: <ss9r8t$1idd$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me> <ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me> <ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me> <ss9at8$m75$1@gioia.aioe.org> <ss9ba0$vb7$1@dont-email.me> <ss9h98$c7u$1@gioia.aioe.org> <61e85855$0$700$14726298@news.sunsite.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="51629"; posting-host="tT05QBSJBp/u6XVsQDZppw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Phillip Helbig (undr - Wed, 19 Jan 2022 20:11 UTC

In article <61e85855$0$700$14726298@news.sunsite.dk>,
=?UTF-8?Q?Arne_Vajh=c3=b8j?= <arne@vajhoej.dk> writes:

> > Then---drumroll, please---I moved from writing the LaTeX by hand (from
> > templates, of course), with all the \include commands, to writing a
> > normal LaTeX document which is then PARSED BY A DCL SCRIPT to create
> > usually several hundred pages of LaTeX source.
> >
> > Later I added the possibility to add a header or footer to each slide,
> > also via the DCL script.
> >
> > I have seen DCL procedures with tens of thousands of lines. :-)
>
> Python or Perl would likely have been both shorter and faster.

Including the time to install them on VMS and learn them? :-|

Re: SEARCH ''

<61e8c418$0$695$14726298@news.sunsite.dk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20148&group=comp.os.vms#20148

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date: Wed, 19 Jan 2022 21:08:21 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: SEARCH ''
Content-Language: en-US
Newsgroups: comp.os.vms
References: <ss4ktr$123e$1@gioia.aioe.org> <ss6nnp$us1$1@dont-email.me>
<ss6t7f$t0q$1@gioia.aioe.org> <ss7l2v$62v$1@dont-email.me>
<ss8okj$1fok$1@gioia.aioe.org> <ss98fn$ahb$1@dont-email.me>
<ss9at8$m75$1@gioia.aioe.org> <ss9ba0$vb7$1@dont-email.me>
<ss9h98$c7u$1@gioia.aioe.org> <61e85855$0$700$14726298@news.sunsite.dk>
<ss9r8t$1idd$1@gioia.aioe.org>
From: arn...@vajhoej.dk (Arne Vajhøj)
In-Reply-To: <ss9r8t$1idd$1@gioia.aioe.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 24
Message-ID: <61e8c418$0$695$14726298@news.sunsite.dk>
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: f9310226.news.sunsite.dk
X-Trace: 1642644504 news.sunsite.dk 695 arne@vajhoej.dk/68.9.63.232:61090
X-Complaints-To: staff@sunsite.dk
 by: Arne Vajhøj - Thu, 20 Jan 2022 02:08 UTC

On 1/19/2022 3:11 PM, Phillip Helbig (undress to reply) wrote:
> In article <61e85855$0$700$14726298@news.sunsite.dk>,
> =?UTF-8?Q?Arne_Vajh=c3=b8j?= <arne@vajhoej.dk> writes:
>>> Then---drumroll, please---I moved from writing the LaTeX by hand (from
>>> templates, of course), with all the \include commands, to writing a
>>> normal LaTeX document which is then PARSED BY A DCL SCRIPT to create
>>> usually several hundred pages of LaTeX source.
>>>
>>> Later I added the possibility to add a header or footer to each slide,
>>> also via the DCL script.
>>>
>>> I have seen DCL procedures with tens of thousands of lines. :-)
>>
>> Python or Perl would likely have been both shorter and faster.
>
> Including the time to install them on VMS and learn them? :-|

No.

But that effort would be beneficial for many other problems.

Arne

Re: SEARCH ''

<ssp03e$g4s$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20251&group=comp.os.vms#20251

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!SgHyH4t8tRCaz+2rdKhaUw.user.46.165.242.91.POSTED!not-for-mail
From: cornel...@eisner.decus.org (George Cornelius)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Tue, 25 Jan 2022 14:05:36 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <ssp03e$g4s$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org> <b95bbcf6-db8b-446a-843e-101da63cdb8dn@googlegroups.com>
Injection-Info: gioia.aioe.org; logging-data="16540"; posting-host="SgHyH4t8tRCaz+2rdKhaUw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-18-amd64 (x86_64))
X-Notice: Filtered by postfilter v. 0.9.2
 by: George Cornelius - Tue, 25 Jan 2022 14:05 UTC

David Jones <osuvman50@gmail.com> wrote:
> On Monday, January 17, 2022 at 3:52:13 PM UTC-5, Phillip Helbig (undress to reply) wrote:
>> I had occasion to SEARCH for the string '' in a file.
>>
>> Is there any way to do this? (It gets expanded as an empty symbol; I
>> don't know how to prevent that.)
>>
>
> $ dsq = "'" + "'" ! make symbol containing 2 single quotes
> $ search myfile.txt &dsq

What's wrong with the old familiar way?

$ search myfile.txt "''dsq'" ?

This has benefits as well when searching for more complex sequences:

$ pip tick="'" ; search myfile.txt "''tick'''tick'MYSYMBOL''tick'"

I don't use &symbol often because I'm not sure I understand
precisely how it differs from the ''symbol' embedded in DQ's.

George

Re: SEARCH ''

<ssp0vp$10he$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=20252&group=comp.os.vms#20252

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!SgHyH4t8tRCaz+2rdKhaUw.user.46.165.242.91.POSTED!not-for-mail
From: cornel...@eisner.decus.org (George Cornelius)
Newsgroups: comp.os.vms
Subject: Re: SEARCH ''
Date: Tue, 25 Jan 2022 14:20:43 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <ssp0vp$10he$1@gioia.aioe.org>
References: <ss4ktr$123e$1@gioia.aioe.org> <b95bbcf6-db8b-446a-843e-101da63cdb8dn@googlegroups.com> <ssp03e$g4s$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="33326"; posting-host="SgHyH4t8tRCaz+2rdKhaUw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-18-amd64 (x86_64))
X-Notice: Filtered by postfilter v. 0.9.2
 by: George Cornelius - Tue, 25 Jan 2022 14:20 UTC

George Cornelius <cornelius@eisner.decus.org> wrote:
> David Jones <osuvman50@gmail.com> wrote:
>> On Monday, January 17, 2022 at 3:52:13 PM UTC-5, Phillip Helbig (undress to reply) wrote:
>>> I had occasion to SEARCH for the string '' in a file.
>>>
>>> Is there any way to do this? (It gets expanded as an empty symbol; I
>>> don't know how to prevent that.)
>>>
>>
>> $ dsq = "'" + "'" ! make symbol containing 2 single quotes
>> $ search myfile.txt &dsq
>
> What's wrong with the old familiar way?
>
> $ search myfile.txt "''dsq'" ?
>
> This has benefits as well when searching for more complex sequences:
>
> $ pip tick="'" ; search myfile.txt "''tick'''tick'MYSYMBOL''tick'"
>
> I don't use &symbol often because I'm not sure I understand
> precisely how it differs from the ''symbol' embedded in DQ's.

To answer my own question (since my second example does not work
at all, but does seem to be ok with '' in place of '''):

The embedded ''symbol' form has its own complications.

George

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor