Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Adapt. Enjoy. Survive.


computers / comp.os.vms / Very simple DCL question

SubjectAuthor
* Very simple DCL questionArne Vajhøj
+* Re: Very simple DCL questionChris Townley
|`* Re: Very simple DCL questionArne Vajhøj
| +* Re: Very simple DCL questionChris Townley
| |`* Re: Very simple DCL questionArne Vajhøj
| | `- Re: Very simple DCL questionChris Townley
| `* Re: Very simple DCL questionCraig A. Berry
|  `* Re: Very simple DCL questionArne Vajhøj
|   `* Re: Very simple DCL questionArne Vajhøj
|    `* Re: Very simple DCL questionVAXman-
|     `* Re: Very simple DCL questionArne Vajhøj
|      +- Re: Very simple DCL questionBill Gunshannon
|      `* Re: Very simple DCL questionArne Vajhøj
|       +- Re: Very simple DCL questionChris Townley
|       `* Re: Very simple DCL questionStephen Hoffman
|        `* Re: Very simple DCL questionArne Vajhøj
|         +* Re: Very simple DCL questionJan-Erik Söderholm
|         |+* Re: Very simple DCL questionVolker Halle
|         ||+* Re: Very simple DCL questionArne Vajhøj
|         |||`- Re: Very simple DCL questionDave Froble
|         ||`- Re: Very simple DCL questionPhillip Helbig (undress to reply
|         |`* Re: Very simple DCL questionStephen Hoffman
|         | +* Re: Very simple DCL questionRobert A. Brooks
|         | |`* Re: Very simple DCL questionStephen Hoffman
|         | | `- Re: Very simple DCL questionCraig A. Berry
|         | +- Re: Very simple DCL questionBill Gunshannon
|         | `- Re: Very simple DCL questionalanfe...@gmail.com
|         `* Re: Very simple DCL questionStephen Hoffman
|          `* Re: Very simple DCL questionArne Vajhøj
|           `* Re: Very simple DCL questionStephen Hoffman
|            `* Re: Very simple DCL questionArne Vajhøj
|             +- Re: Very simple DCL questionStephen Hoffman
|             +* Re: Very simple DCL questionJohnny Billquist
|             |`- Re: Very simple DCL questionArne Vajhøj
|             `* Re: Very simple DCL questionBill Gunshannon
|              `- Re: Very simple DCL questionArne Vajhøj
+- Re: Very simple DCL questionalanfe...@gmail.com
+- Re: Very simple DCL questiongah4
`* Re: Very simple DCL questioncao...@pitbulluk.org
 +* Re: Very simple DCL questionPhillip Helbig (undress to reply
 |`- Re: Very simple DCL questionSimon Clubley
 `* Re: Very simple DCL questionArne Vajhøj
  `- Re: Very simple DCL questioncao...@pitbulluk.org

Pages:12
Very simple DCL question

<tohrrm$1e9u$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Very simple DCL question
Date: Wed, 28 Dec 2022 11:45:39 -0500
Organization: Aioe.org NNTP Server
Message-ID: <tohrrm$1e9u$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="47422"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Wed, 28 Dec 2022 16:45 UTC

$ type z.com
$ write sys$output "''p1'"
$ @z a
A $ @z "a"
a

This is not really surprising.

But are there any way to preserve pn case without
double-quoting it?

Like this hypothetical syntax:

$ set proc/parse=(extended,pnkeepcase)

Arne

Re: Very simple DCL question

<toi1tl$3ul97$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Wed, 28 Dec 2022 18:29:08 +0000
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <toi1tl$3ul97$1@dont-email.me>
References: <tohrrm$1e9u$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Dec 2022 18:29:09 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c3d908244bb62295089179958a72d96a";
logging-data="4150567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1817Im7xIpZJAUWFmgRrEGorLwU6EUTsy4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:wOfcQbkWuKLYdhMlot2YKUBS4q0=
In-Reply-To: <tohrrm$1e9u$1@gioia.aioe.org>
Content-Language: en-GB
 by: Chris Townley - Wed, 28 Dec 2022 18:29 UTC

On 28/12/2022 16:45, Arne Vajhøj wrote:
> $ type z.com
> $ write sys$output "''p1'"
> $ @z a
> A
> $ @z "a"
> a
>
> This is not really surprising.
>
> But are there any way to preserve pn case without
> double-quoting it?
>
> Like this hypothetical syntax:
>
> $ set proc/parse=(extended,pnkeepcase)
>
> Arne

There is of course

$ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED

Does this not work?

--
Chris

Re: Very simple DCL question

<toi2eu$ovs$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Wed, 28 Dec 2022 13:38:19 -0500
Organization: Aioe.org NNTP Server
Message-ID: <toi2eu$ovs$1@gioia.aioe.org>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="25596"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Wed, 28 Dec 2022 18:38 UTC

On 12/28/2022 1:29 PM, Chris Townley wrote:
> On 28/12/2022 16:45, Arne Vajhøj wrote:
>> $ type z.com
>> $ write sys$output "''p1'"
>> $ @z a
>> A
>> $ @z "a"
>> a
>>
>> This is not really surprising.
>>
>> But are there any way to preserve pn case without
>> double-quoting it?
>>
>> Like this hypothetical syntax:
>>
>> $ set proc/parse=(extended,pnkeepcase)
>
> There is of course
>
> $ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
>
> Does this not work?

I did not know that. But no.

$ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
%DCL-W-IVKEYW, unrecognized keyword - check validity and spelling
\CASE_LOOKUP\
$ SET PROCESS /CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
$ @z a
%DCL-E-OPENIN, error opening DISK2:[ARNE.gpcp]z.COM; as input
-RMS-E-FNF, file not found
$ @z.com a
A $ @z.com "a"
a

Arne

Re: Very simple DCL question

<toi2t5$3ul97$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Wed, 28 Dec 2022 18:45:55 +0000
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <toi2t5$3ul97$2@dont-email.me>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Dec 2022 18:45:57 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c3d908244bb62295089179958a72d96a";
logging-data="4150567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uKjf/XCIcCwq3SHcmTbB+WswfeF3dNTo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:CPBdNPRhoHrH8gWHdGaBC3sIQ6g=
In-Reply-To: <toi2eu$ovs$1@gioia.aioe.org>
Content-Language: en-GB
 by: Chris Townley - Wed, 28 Dec 2022 18:45 UTC

On 28/12/2022 18:38, Arne Vajhøj wrote:
> On 12/28/2022 1:29 PM, Chris Townley wrote:
>> On 28/12/2022 16:45, Arne Vajhøj wrote:
>>> $ type z.com
>>> $ write sys$output "''p1'"
>>> $ @z a
>>> A
>>> $ @z "a"
>>> a
>>>
>>> This is not really surprising.
>>>
>>> But are there any way to preserve pn case without
>>> double-quoting it?
>>>
>>> Like this hypothetical syntax:
>>>
>>> $ set proc/parse=(extended,pnkeepcase)
>>
>> There is of course
>>
>> $ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
>>
>> Does this not work?
>
> I did not know that. But no.
>
> $ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
> %DCL-W-IVKEYW, unrecognized keyword - check validity and spelling
>  \CASE_LOOKUP\
> $ SET PROCESS /CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
> $ @z a
> %DCL-E-OPENIN, error opening DISK2:[ARNE.gpcp]z.COM; as input
> -RMS-E-FNF, file not found
> $ @z.com a
> A
> $ @z.com "a"
> a
>
> Arne
>

Interesting. What version of VMS are you on?

My example was straight from the VSI DCL dictionary. I was vaguely aware
of something like that.

Presumably the command affects the current process - do you need to have
it in z.com? Although you shouldn't as you are double quoting the symbol
substitution.

--
Chris

Re: Very simple DCL question

<toi7m1$21mk$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Wed, 28 Dec 2022 14:07:28 -0600
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <toi7m1$21mk$1@dont-email.me>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Dec 2022 20:07:29 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="553317b1764f466c9d23477a57bfa538";
logging-data="67284"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hfA3JOGnufrQJ8pDMDtBmaGFMtnFgb7o="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.6.1
Cancel-Lock: sha1:vaZwcaatc88j+nk4hrRslQa/wVU=
Content-Language: en-US
In-Reply-To: <toi2eu$ovs$1@gioia.aioe.org>
 by: Craig A. Berry - Wed, 28 Dec 2022 20:07 UTC

On 12/28/22 12:38 PM, Arne Vajhøj wrote:
> On 12/28/2022 1:29 PM, Chris Townley wrote:
>> On 28/12/2022 16:45, Arne Vajhøj wrote:
>>> $ type z.com
>>> $ write sys$output "''p1'"
>>> $ @z a
>>> A
>>> $ @z "a"
>>> a
>>>
>>> This is not really surprising.
>>>
>>> But are there any way to preserve pn case without
>>> double-quoting it?
>>>
>>> Like this hypothetical syntax:
>>>
>>> $ set proc/parse=(extended,pnkeepcase)
>>
>> There is of course
>>
>> $ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
>>
>> Does this not work?
>
> I did not know that. But no.
>
> $ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
> %DCL-W-IVKEYW, unrecognized keyword - check validity and spelling
>  \CASE_LOOKUP\
> $ SET PROCESS /CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
> $ @z a
> %DCL-E-OPENIN, error opening DISK2:[ARNE.gpcp]z.COM; as input
> -RMS-E-FNF, file not found
> $ @z.com a
> A
> $ @z.com "a"
> a

Case sensitivity doesn't really have anything to do with case
preservation. I don't know of any way to do what Arne wants here except
to avoid DCL. Write a C program (or use something written in C, such as
Perl or Python, instead of DCL) and set extended parse in the process
and DECC$ARGV_PARSE_STYLE in the environment before running the C program.

Re: Very simple DCL question

<toi9bb$1t5o$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Wed, 28 Dec 2022 15:35:52 -0500
Organization: Aioe.org NNTP Server
Message-ID: <toi9bb$1t5o$1@gioia.aioe.org>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi2t5$3ul97$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="62648"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Wed, 28 Dec 2022 20:35 UTC

On 12/28/2022 1:45 PM, Chris Townley wrote:
> On 28/12/2022 18:38, Arne Vajhøj wrote:
>> On 12/28/2022 1:29 PM, Chris Townley wrote:
>>> On 28/12/2022 16:45, Arne Vajhøj wrote:
>>>> $ type z.com
>>>> $ write sys$output "''p1'"
>>>> $ @z a
>>>> A
>>>> $ @z "a"
>>>> a
>>>>
>>>> This is not really surprising.
>>>>
>>>> But are there any way to preserve pn case without
>>>> double-quoting it?
>>>>
>>>> Like this hypothetical syntax:
>>>>
>>>> $ set proc/parse=(extended,pnkeepcase)
>>>
>>> There is of course
>>>
>>> $ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
>>>
>>> Does this not work?
>>
>> I did not know that. But no.
>>
>> $ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
>> %DCL-W-IVKEYW, unrecognized keyword - check validity and spelling
>>   \CASE_LOOKUP\
>> $ SET PROCESS /CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
>> $ @z a
>> %DCL-E-OPENIN, error opening DISK2:[ARNE.gpcp]z.COM; as input
>> -RMS-E-FNF, file not found
>> $ @z.com a
>> A
>> $ @z.com "a"
>> a
>
> Interesting. What version of VMS are you on?

$ write sys$output f$getsyi("version")
V8.4-2L2

> My example was straight from the VSI DCL dictionary. I was vaguely aware
> of something like that.
>
> Presumably the command affects the current process - do you need to have
> it in z.com? Although you shouldn't as you are double quoting the symbol
> substitution.

I am pretty sure that the problem has already happened when the first
line in z.com is executed.

Arne

Re: Very simple DCL question

<toi9hp$33e$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Wed, 28 Dec 2022 15:39:19 -0500
Organization: Aioe.org NNTP Server
Message-ID: <toi9hp$33e$1@gioia.aioe.org>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="3182"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Wed, 28 Dec 2022 20:39 UTC

On 12/28/2022 3:07 PM, Craig A. Berry wrote:
>>> On 28/12/2022 16:45, Arne Vajhøj wrote:
>>>> $ type z.com
>>>> $ write sys$output "''p1'"
>>>> $ @z a
>>>> A
>>>> $ @z "a"
>>>> a
>>>>
>>>> This is not really surprising.
>>>>
>>>> But are there any way to preserve pn case without
>>>> double-quoting it?
>>>>
>>>> Like this hypothetical syntax:
>>>>
>>>> $ set proc/parse=(extended,pnkeepcase)

> Case sensitivity doesn't really have anything to do with case
> preservation.  I don't know of any way to do what Arne wants here except
> to avoid DCL.  Write a C program (or use something written in C, such as
> Perl or Python, instead of DCL) and set extended parse in the process
> and DECC$ARGV_PARSE_STYLE in the environment before running the C program.

:-(

But thanks.

Arne

Re: Very simple DCL question

<toiaie$3ul97$3@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Wed, 28 Dec 2022 20:56:45 +0000
Organization: A noiseless patient Spider
Lines: 76
Message-ID: <toiaie$3ul97$3@dont-email.me>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi2t5$3ul97$2@dont-email.me>
<toi9bb$1t5o$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 28 Dec 2022 20:56:46 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c3d908244bb62295089179958a72d96a";
logging-data="4150567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uxpP88BFEl+wZUIhKQ1f0gTClGY5prqQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:8d76/5RtImiiZ15cRmrk6+oRNzo=
Content-Language: en-GB
In-Reply-To: <toi9bb$1t5o$1@gioia.aioe.org>
 by: Chris Townley - Wed, 28 Dec 2022 20:56 UTC

On 28/12/2022 20:35, Arne Vajhøj wrote:
> On 12/28/2022 1:45 PM, Chris Townley wrote:
>> On 28/12/2022 18:38, Arne Vajhøj wrote:
>>> On 12/28/2022 1:29 PM, Chris Townley wrote:
>>>> On 28/12/2022 16:45, Arne Vajhøj wrote:
>>>>> $ type z.com
>>>>> $ write sys$output "''p1'"
>>>>> $ @z a
>>>>> A
>>>>> $ @z "a"
>>>>> a
>>>>>
>>>>> This is not really surprising.
>>>>>
>>>>> But are there any way to preserve pn case without
>>>>> double-quoting it?
>>>>>
>>>>> Like this hypothetical syntax:
>>>>>
>>>>> $ set proc/parse=(extended,pnkeepcase)
>>>>
>>>> There is of course
>>>>
>>>> $ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
>>>>
>>>> Does this not work?
>>>
>>> I did not know that. But no.
>>>
>>> $ SET PROCESS /CASE=CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
>>> %DCL-W-IVKEYW, unrecognized keyword - check validity and spelling
>>>   \CASE_LOOKUP\
>>> $ SET PROCESS /CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
>>> $ @z a
>>> %DCL-E-OPENIN, error opening DISK2:[ARNE.gpcp]z.COM; as input
>>> -RMS-E-FNF, file not found
>>> $ @z.com a
>>> A
>>> $ @z.com "a"
>>> a
>>
>> Interesting. What version of VMS are you on?
>
> $ write sys$output f$getsyi("version")
> V8.4-2L2
>
>> My example was straight from the VSI DCL dictionary. I was vaguely
>> aware of something like that.
>>
>> Presumably the command affects the current process - do you need to
>> have it in z.com? Although you shouldn't as you are double quoting the
>> symbol substitution.
>
> I am pretty sure that the problem has already happened when the first
> line in z.com is executed.
>
> Arne
>

Interesting

$ SET PROCESS /CASE_LOOKUP=SENSITIVE /PARSE_STYLE=EXTENDED
$ aa = "a"
$ show sym aa
AA = "a"

$ @z.com 'aa'
A $ @z.com "''aa'"
a

Not sure what else to suggest...

--
Chris

Re: Very simple DCL question

<toisqe$p0r$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Wed, 28 Dec 2022 21:08:12 -0500
Organization: Aioe.org NNTP Server
Message-ID: <toisqe$p0r$1@gioia.aioe.org>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
<toi9hp$33e$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="25627"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Thu, 29 Dec 2022 02:08 UTC

On 12/28/2022 3:39 PM, Arne Vajhøj wrote:
> On 12/28/2022 3:07 PM, Craig A. Berry wrote:
>>>> On 28/12/2022 16:45, Arne Vajhøj wrote:
>>>>> $ type z.com
>>>>> $ write sys$output "''p1'"
>>>>> $ @z a
>>>>> A
>>>>> $ @z "a"
>>>>> a
>>>>>
>>>>> This is not really surprising.
>>>>>
>>>>> But are there any way to preserve pn case without
>>>>> double-quoting it?
>>>>>
>>>>> Like this hypothetical syntax:
>>>>>
>>>>> $ set proc/parse=(extended,pnkeepcase)
>
>> Case sensitivity doesn't really have anything to do with case
>> preservation.  I don't know of any way to do what Arne wants here except
>> to avoid DCL.  Write a C program (or use something written in C, such as
>> Perl or Python, instead of DCL) and set extended parse in the process
>> and DECC$ARGV_PARSE_STYLE in the environment before running the C
>> program.
>
> :-(
>
> But thanks.

I will use the double quotes.

But just for fun:

$ type zz.com
$ write sys$output "''p1' ''p2' ''p3'"
$ run realp
$ write sys$output "''p1' ''p2' ''p3'"
$ @zz aaaa BBBB CcCc
AAAA BBBB CCCC
aaaa BBBB CcCc

But there is a gazillion things that can go wrong with that
realp.

Code below.

Arne

.title realp
$SSDEF
$DSCDEF
.macro if_end_command,lbl
cmpl r3,r4
bgeq lbl
.endm
.macro if_space,lbl
cmpb (r3),#32
beql lbl
.endm
.psect $LOCAL quad,pic,con,lcl,noshr,noexe,wrt
cmdlen: .blkw 1
cmdbuf: .blkb 256
pnam: .ascid "P1"
pval: .blkw 1
.byte DSC$K_DTYPE_T
.byte DSC$K_CLASS_S
.address pvala
pvala: .blkb 256
.psect $CODE quad,pic,con,lcl,shr,exe,nowrt
.entry realp,^m<r2,r3,r4,r5>
; grab copy of command line
movl #CTL$AG_CLIDATA,r0
movl W^PPD$L_PRC(r0),r0
movl W^PRC_L_RECALLPTR(r0),r0 ; r0 = next command
subl2 #2,r0
cvtwl (r0),r1 ; r1 = length current command
subl2 r1,r0 ; r0 = current command
movw r1,cmdlen ; copy of length of command line
movc3 r1,(r0),cmdbuf ; copy of command line
movab cmdbuf,r3 ; r3 = current character on
command line
cvtwl cmdlen,r1
addl3 r1,r3,r4 ; r4 = end of command line
; skip command itself
100$: if_end_command done
if_space start
incl r3 ; move to next character
brb 100$
; process parameters
start: incl r3 ; r3 = start first argument
movl #1,r2 ; r2 = n = 1
200$: if_end_command done
movw #0,pval ; reset parameter data
movab pvala,r5 ; r5 = where to copy parameter data
300$: if_end_command 500$
if_space 400$
incw pval ; add to pval/pvala
movb (r3),(r5)
incl r3
incl r5
brb 300$
400$: incl r3 ; skip space between parameters
500$: pushl #0
pushab pval
pushab pnam
calls #3,G^LIB$SET_SYMBOL
incb pnam+9 ; Pn -> Pn+1
incl r2 ; n = n + 1
cmpl r2,#8 ; while n <= 8
bleq 200$
done: movl #SS$_NORMAL,r0
ret
.end realp

Re: Very simple DCL question

<00B7FE97.234F3226@SendSpamHere.ORG>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!pr9o9uw/KLhPSFYv2ok3sg.user.46.165.242.75.POSTED!not-for-mail
From: VAXm...@SendSpamHere.ORG
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Thu, 29 Dec 2022 03:49:42 GMT
Organization: c.2022 Brian Schenkenberger. Prior employers of copyright holder and their agents must first obtain written permission to copy this posting.
Message-ID: <00B7FE97.234F3226@SendSpamHere.ORG>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me> <toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me> <toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org>
Reply-To: VAXman- @SendSpamHere.ORG
Injection-Info: gioia.aioe.org; logging-data="46463"; posting-host="pr9o9uw/KLhPSFYv2ok3sg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: VAXm...@SendSpamHere.ORG - Thu, 29 Dec 2022 03:49 UTC

In article <toisqe$p0r$1@gioia.aioe.org>, =?UTF-8?Q?Arne_Vajh=c3=b8j?= <arne@vajhoej.dk> writes:
>On 12/28/2022 3:39 PM, Arne Vajhøj wrote:
>> On 12/28/2022 3:07 PM, Craig A. Berry wrote:
>>>>> On 28/12/2022 16:45, Arne Vajhøj wrote:
>>>>>> $ type z.com
>>>>>> $ write sys$output "''p1'"
>>>>>> $ @z a
>>>>>> A
>>>>>> $ @z "a"
>>>>>> a
>>>>>>
>>>>>> This is not really surprising.
>>>>>>
>>>>>> But are there any way to preserve pn case without
>>>>>> double-quoting it?
>>>>>>
>>>>>> Like this hypothetical syntax:
>>>>>>
>>>>>> $ set proc/parse=(extended,pnkeepcase)
>>
>>> Case sensitivity doesn't really have anything to do with case
>>> preservation.  I don't know of any way to do what Arne wants here except
>>> to avoid DCL.  Write a C program (or use something written in C, such as
>>> Perl or Python, instead of DCL) and set extended parse in the process
>>> and DECC$ARGV_PARSE_STYLE in the environment before running the C
>>> program.
>>
>> :-(
>>
>> But thanks.
>
>I will use the double quotes.
>
>But just for fun:
>
>$ type zz.com
>$ write sys$output "''p1' ''p2' ''p3'"
>$ run realp
>$ write sys$output "''p1' ''p2' ''p3'"
>$ @zz aaaa BBBB CcCc
>AAAA BBBB CCCC
>aaaa BBBB CcCc
>
>But there is a gazillion things that can go wrong with that
>realp.
>
>Code below.
>
>Arne
>
>
>
> .title realp
> $SSDEF
> $DSCDEF
> .macro if_end_command,lbl
> cmpl r3,r4
> bgeq lbl
> .endm
> .macro if_space,lbl
> cmpb (r3),#32
> beql lbl
> .endm
> .psect $LOCAL quad,pic,con,lcl,noshr,noexe,wrt
>cmdlen: .blkw 1
>cmdbuf: .blkb 256
>pnam: .ascid "P1"
>pval: .blkw 1
> .byte DSC$K_DTYPE_T
> .byte DSC$K_CLASS_S
> .address pvala
>pvala: .blkb 256
> .psect $CODE quad,pic,con,lcl,shr,exe,nowrt
> .entry realp,^m<r2,r3,r4,r5>
>; grab copy of command line
> movl #CTL$AG_CLIDATA,r0
> movl W^PPD$L_PRC(r0),r0
> movl W^PRC_L_RECALLPTR(r0),r0 ; r0 = next command
> subl2 #2,r0
> cvtwl (r0),r1 ; r1 = length current command
> subl2 r1,r0 ; r0 = current command
> movw r1,cmdlen ; copy of length of command line
> movc3 r1,(r0),cmdbuf ; copy of command line
> movab cmdbuf,r3 ; r3 = current character on
>command line
> cvtwl cmdlen,r1
> addl3 r1,r3,r4 ; r4 = end of command line
>; skip command itself
>100$: if_end_command done
> if_space start
> incl r3 ; move to next character
> brb 100$
>; process parameters
>start: incl r3 ; r3 = start first argument
> movl #1,r2 ; r2 = n = 1
>200$: if_end_command done
> movw #0,pval ; reset parameter data
> movab pvala,r5 ; r5 = where to copy parameter data
>300$: if_end_command 500$
> if_space 400$
> incw pval ; add to pval/pvala
> movb (r3),(r5)
> incl r3
> incl r5
> brb 300$
>400$: incl r3 ; skip space between parameters
>500$: pushl #0
> pushab pval
> pushab pnam
> calls #3,G^LIB$SET_SYMBOL
> incb pnam+9 ; Pn -> Pn+1
> incl r2 ; n = n + 1
> cmpl r2,#8 ; while n <= 8
> bleq 200$
>done: movl #SS$_NORMAL,r0
> ret
> .end realp

Good grief! I needed an airsick bag and bottle of Tums after reading that.

--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

I speak to machines with the voice of humanity.

Re: Very simple DCL question

<toivo9$1ls9$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Wed, 28 Dec 2022 21:58:15 -0500
Organization: Aioe.org NNTP Server
Message-ID: <toivo9$1ls9$1@gioia.aioe.org>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
<toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org>
<00B7FE97.234F3226@SendSpamHere.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="55177"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Thu, 29 Dec 2022 02:58 UTC

On 12/28/2022 10:49 PM, VAXman-@SendSpamHere.ORG wrote:
> In article <toisqe$p0r$1@gioia.aioe.org>, =?UTF-8?Q?Arne_Vajh=c3=b8j?= <arne@vajhoej.dk> writes:
>> .title realp
>> $SSDEF
>> $DSCDEF
>> .macro if_end_command,lbl
>> cmpl r3,r4
>> bgeq lbl
>> .endm
>> .macro if_space,lbl
>> cmpb (r3),#32
>> beql lbl
>> .endm
>> .psect $LOCAL quad,pic,con,lcl,noshr,noexe,wrt
>> cmdlen: .blkw 1
>> cmdbuf: .blkb 256
>> pnam: .ascid "P1"
>> pval: .blkw 1
>> .byte DSC$K_DTYPE_T
>> .byte DSC$K_CLASS_S
>> .address pvala
>> pvala: .blkb 256
>> .psect $CODE quad,pic,con,lcl,shr,exe,nowrt
>> .entry realp,^m<r2,r3,r4,r5>
>> ; grab copy of command line
>> movl #CTL$AG_CLIDATA,r0
>> movl W^PPD$L_PRC(r0),r0
>> movl W^PRC_L_RECALLPTR(r0),r0 ; r0 = next command
>> subl2 #2,r0
>> cvtwl (r0),r1 ; r1 = length current command
>> subl2 r1,r0 ; r0 = current command
>> movw r1,cmdlen ; copy of length of command line
>> movc3 r1,(r0),cmdbuf ; copy of command line
>> movab cmdbuf,r3 ; r3 = current character on
>> command line
>> cvtwl cmdlen,r1
>> addl3 r1,r3,r4 ; r4 = end of command line
>> ; skip command itself
>> 100$: if_end_command done
>> if_space start
>> incl r3 ; move to next character
>> brb 100$
>> ; process parameters
>> start: incl r3 ; r3 = start first argument
>> movl #1,r2 ; r2 = n = 1
>> 200$: if_end_command done
>> movw #0,pval ; reset parameter data
>> movab pvala,r5 ; r5 = where to copy parameter data
>> 300$: if_end_command 500$
>> if_space 400$
>> incw pval ; add to pval/pvala
>> movb (r3),(r5)
>> incl r3
>> incl r5
>> brb 300$
>> 400$: incl r3 ; skip space between parameters
>> 500$: pushl #0
>> pushab pval
>> pushab pnam
>> calls #3,G^LIB$SET_SYMBOL
>> incb pnam+9 ; Pn -> Pn+1
>> incl r2 ; n = n + 1
>> cmpl r2,#8 ; while n <= 8
>> bleq 200$
>> done: movl #SS$_NORMAL,r0
>> ret
>> .end realp
>
> Good grief! I needed an airsick bag and bottle of Tums after reading that.

That bad? Hmmm.

Well - I have not written much Macro-32 the last 25 years so ...

Arne

Re: Very simple DCL question

<55b30b58-2f00-4bec-acbb-1dac0bf1d40bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a05:620a:890:b0:6fe:ab3e:3d09 with SMTP id b16-20020a05620a089000b006feab3e3d09mr821397qka.111.1672282881256;
Wed, 28 Dec 2022 19:01:21 -0800 (PST)
X-Received: by 2002:a05:620a:2b83:b0:6fc:cbd8:25d7 with SMTP id
dz3-20020a05620a2b8300b006fccbd825d7mr1026340qkb.350.1672282880986; Wed, 28
Dec 2022 19:01:20 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.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: Wed, 28 Dec 2022 19:01:20 -0800 (PST)
In-Reply-To: <tohrrm$1e9u$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=173.54.236.44; posting-account=mCRRdgoAAAAonHT6WInwG1Fadnh7R0dx
NNTP-Posting-Host: 173.54.236.44
References: <tohrrm$1e9u$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <55b30b58-2f00-4bec-acbb-1dac0bf1d40bn@googlegroups.com>
Subject: Re: Very simple DCL question
From: alanfeld...@gmail.com (alanfe...@gmail.com)
Injection-Date: Thu, 29 Dec 2022 03:01:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2257
 by: alanfe...@gmail.com - Thu, 29 Dec 2022 03:01 UTC

On Wednesday, December 28, 2022 at 11:45:45 AM UTC-5, Arne Vajhøj wrote:
> $ type z.com
> $ write sys$output "''p1'"
> $ @z a
> A
> $ @z "a"
> a
>
> This is not really surprising.
>
> But are there any way to preserve pn case without
> double-quoting it?
>
> Like this hypothetical syntax:
>
> $ set proc/parse=(extended,pnkeepcase)
>
> Arne

I don't think it's possible without quotation marks. Upcasing is done in the first phase of command parsing/evaluation/whatever.

See section 12.13 of the v8.4-2L1 Alpha user's manual. It doesn't mention the upcasing, by experiments I did long ago do seem to indicate that the upcasing does indeed occur in phase 1.

See also section 2.3. I could swear there was some example like abc"def"ghi, but maybe you need an older manual to find that.

Found some stuff.
First use SHOW SYMBOL instead of write sys$output "''p1"

$ type z.com
$ write sys$output "''p1'"
$ show symbol p1
$
$ @Z abc"def"ghi
ABCDEFGHI
P1 = "ABC"def"GHI"
$

See Help @ for that example.

Re: Very simple DCL question

<k15k8rF9g2cU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gun...@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Thu, 29 Dec 2022 08:50:19 -0500
Lines: 15
Message-ID: <k15k8rF9g2cU1@mid.individual.net>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
<toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org>
<00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net joNAcsLDB0w+4VAhkwV9YgngpOrs9mJDONXMAFYaNx3BtvF5GK
Cancel-Lock: sha1:BSfgEjp/bD4LTY9385YAFZ8ieIE=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Content-Language: en-US
In-Reply-To: <toivo9$1ls9$1@gioia.aioe.org>
 by: Bill Gunshannon - Thu, 29 Dec 2022 13:50 UTC

On 12/28/22 21:58, Arne Vajhøj wrote:
>
>
> That bad? Hmmm.
>
> Well - I have not written much Macro-32 the last 25 years so ...
>

Gee... My MACRO skills are still pretty sharp.

Oh wait... You meant MACRO-32. Never mind. :-)

bill

Re: Very simple DCL question

<toq831$1af6$2@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sat, 31 Dec 2022 16:03:24 -0500
Organization: Aioe.org NNTP Server
Message-ID: <toq831$1af6$2@gioia.aioe.org>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
<toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org>
<00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="43494"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Sat, 31 Dec 2022 21:03 UTC

On 12/28/2022 9:58 PM, Arne Vajhøj wrote:
> On 12/28/2022 10:49 PM, VAXman-@SendSpamHere.ORG wrote:
>> In article <toisqe$p0r$1@gioia.aioe.org>, =?UTF-8?Q?Arne_Vajh=c3=b8j?=
>> <arne@vajhoej.dk> writes:
[Macro-32 omitted]
>> Good grief!  I needed an airsick bag and bottle of Tums after reading
>> that.
>
> That bad? Hmmm.

You will probably not like the zweiter sehr verbesserte ausgabe either.

.title realp
$SSDEF
$DSCDEF
SPACE=32
PRC_C_CMDBUFSIZ=4097 ; 1025 on VAX
PRC$W_PROCLEVEL=56
.macro if_end_command,lbl
cmpl r3,r4
bgeq lbl
.endm
.macro if_space,lbl
cmpb (r3),#SPACE
beql lbl
.endm
.psect $PDATA quad,pic,con,lcl,shr,noexe,nowrt
nomsg: .ascid "This is not run from first level COM file so no action
taken"
.psect $LOCAL quad,pic,con,lcl,noshr,noexe,wrt
copy1: .blkb PRC_C_CMDBUFSIZ
copy2: .blkb PRC_C_CMDBUFSIZ
pnam: .ascid "P1"
pval: .blkw 1
.byte DSC$K_DTYPE_T
.byte DSC$K_CLASS_S
.address pvala
pvala: .blkb 256
.psect $CODE quad,pic,con,lcl,shr,exe,nowrt
.entry realp,^m<r2,r3,r4,r5,r6>
; phase 1 : grab copy of recall buffer
; out r0 = command length
; out r1 = command address
; temp r2 & r3 for working storage
; temp r6 = pointer recall buffer P1 space
movl #CTL$AG_CLIDATA,r6
movl W^PPD$L_PRC(r6),r6
cmpw W^PRC$W_PROCLEVEL(r6),#1 ; test if run from first level
COM file
bneq nogood
movc3 #PRC_C_CMDBUFSIZ,W^PRC_G_COMMANDS(r6),copy1 ; make two
copies of data to handle circular buffer
movc3 #PRC_C_CMDBUFSIZ,W^PRC_G_COMMANDS(r6),copy2
movab W^PRC_G_COMMANDS(r6),r2 ; find address next command
movl W^PRC_L_RECALLPTR(r6),r3
subl3 r2,r3,r1
movab copy2,r6
addl2 r6,r1
subl2 #2,r1 ; find length current command
cvtwl (r1),r0
subl2 r0,r1 ; find address current command
; phase 2 : parse
; in r0 = command length
; in r1 = command address
; temp r2 = parameter number
; temp r3 = current character in command
; temp r4 = end of command
; temp r5 = current Pn output character
movl r1,r3 ; current character = first
character
addl3 r0,r3,r4 ; find end of command
; skip command itself
100$: if_end_command done
if_space start
incl r3 ; skip if not space
brb 100$
; process parameters
start: incl r3 ; skip space between command
itself and P1
movl #1,r2 ; n = 1
200$: if_end_command done
movw #0,pval ; reset parameter data
movab pvala,r5
300$: if_end_command 500$
if_space 400$
incw pval ; add to parameter data
movb (r3)+,(r5)+
brb 300$
400$: incl r3 ; skip space between Pn and Pn+1
500$: pushl #0
pushab pval ; set Pn symbol
pushab pnam
calls #3,G^LIB$SET_SYMBOL
incb pnam+9 ; update Pn -> Pn+1
incl r2 ; n = n + 1
cmpl r2,#8 ; while n <= 8
bleq 200$
brb done
; message due to to not being run from first level COM file
nogood: pushab nomsg
calls #1,G^LIB$PUT_OUTPUT
; all done
done: movl #SS$_NORMAL,r0
ret
.end realp

Arne

Re: Very simple DCL question

<toqgmi$114ne$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: new...@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sat, 31 Dec 2022 23:30:26 +0000
Organization: A noiseless patient Spider
Lines: 120
Message-ID: <toqgmi$114ne$2@dont-email.me>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
<toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org>
<00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org>
<toq831$1af6$2@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 31 Dec 2022 23:30:26 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="fcdc776745c93c9283858b26d76984f7";
logging-data="1086190"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZSGGvObzn7voQRI0/4FjkpRD6s5AM8uE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:hFJHJ5ohZodn2Ji8hDRB943JZL8=
In-Reply-To: <toq831$1af6$2@gioia.aioe.org>
Content-Language: en-GB
 by: Chris Townley - Sat, 31 Dec 2022 23:30 UTC

On 31/12/2022 21:03, Arne Vajhøj wrote:
> On 12/28/2022 9:58 PM, Arne Vajhøj wrote:
>> On 12/28/2022 10:49 PM, VAXman-@SendSpamHere.ORG wrote:
>>> In article <toisqe$p0r$1@gioia.aioe.org>,
>>> =?UTF-8?Q?Arne_Vajh=c3=b8j?= <arne@vajhoej.dk> writes:
> [Macro-32 omitted]
>>> Good grief!  I needed an airsick bag and bottle of Tums after reading
>>> that.
>>
>> That bad? Hmmm.
>
> You will probably not like the zweiter sehr verbesserte ausgabe either.
>
>         .title  realp
>         $SSDEF
>         $DSCDEF
> SPACE=32
> PRC_C_CMDBUFSIZ=4097 ; 1025 on VAX
> PRC$W_PROCLEVEL=56
>         .macro  if_end_command,lbl
>         cmpl    r3,r4
>         bgeq    lbl
>         .endm
>         .macro  if_space,lbl
>         cmpb    (r3),#SPACE
>         beql    lbl
>         .endm
>         .psect  $PDATA quad,pic,con,lcl,shr,noexe,nowrt
> nomsg:  .ascid  "This is not run from first level COM file so no action
> taken"
>         .psect  $LOCAL quad,pic,con,lcl,noshr,noexe,wrt
> copy1:  .blkb   PRC_C_CMDBUFSIZ
> copy2:  .blkb   PRC_C_CMDBUFSIZ
> pnam:   .ascid  "P1"
> pval:   .blkw   1
>         .byte   DSC$K_DTYPE_T
>         .byte   DSC$K_CLASS_S
>         .address pvala
> pvala:  .blkb   256
>         .psect  $CODE quad,pic,con,lcl,shr,exe,nowrt
>         .entry  realp,^m<r2,r3,r4,r5,r6>
> ; phase 1 : grab copy of recall buffer
> ;   out  r0 = command length
> ;   out  r1 = command address
> ;   temp r2 & r3 for working storage
> ;   temp r6 = pointer recall buffer P1 space
>         movl    #CTL$AG_CLIDATA,r6
>         movl    W^PPD$L_PRC(r6),r6
>         cmpw    W^PRC$W_PROCLEVEL(r6),#1 ; test if run from first level
> COM file
>         bneq    nogood
>         movc3   #PRC_C_CMDBUFSIZ,W^PRC_G_COMMANDS(r6),copy1 ; make two
> copies of data to handle circular buffer
>         movc3   #PRC_C_CMDBUFSIZ,W^PRC_G_COMMANDS(r6),copy2
>         movab   W^PRC_G_COMMANDS(r6),r2 ; find address next command
>         movl    W^PRC_L_RECALLPTR(r6),r3
>         subl3   r2,r3,r1
>         movab   copy2,r6
>         addl2   r6,r1
>         subl2   #2,r1                   ; find length current command
>         cvtwl   (r1),r0
>         subl2   r0,r1                   ; find address current command
> ; phase 2 : parse
> ;   in   r0 = command length
> ;   in   r1 = command address
> ;   temp r2 = parameter number
> ;   temp r3 = current character in command
> ;   temp r4 = end of command
> ;   temp r5 = current Pn output character
>         movl    r1,r3                   ; current character = first
> character
>         addl3   r0,r3,r4                ; find end of command
> ; skip command itself
> 100$:   if_end_command done
>         if_space start
>         incl    r3                      ; skip if not space
>         brb     100$
> ; process parameters
> start:  incl    r3                      ; skip space between command
> itself and P1
>         movl    #1,r2                   ; n = 1
> 200$:   if_end_command done
>         movw    #0,pval                 ; reset parameter data
>         movab   pvala,r5
> 300$:   if_end_command 500$
>         if_space 400$
>         incw    pval                    ; add to parameter data
>         movb    (r3)+,(r5)+
>         brb     300$
> 400$:   incl    r3                      ; skip space between Pn and Pn+1
> 500$:   pushl   #0
>         pushab  pval                    ; set Pn symbol
>         pushab  pnam
>         calls   #3,G^LIB$SET_SYMBOL
>         incb    pnam+9                  ; update Pn -> Pn+1
>         incl    r2                      ; n = n + 1
>         cmpl    r2,#8                   ; while n <= 8
>         bleq    200$
>         brb     done
> ; message due to to not being run from first level COM file
> nogood: pushab  nomsg
>         calls   #1,G^LIB$PUT_OUTPUT
> ; all done
> done:   movl    #SS$_NORMAL,r0
>         ret
>         .end    realp
>
> Arne
That reminds why I told the development manager, when being interviewed
to join the programming team, that I would not do macro...

I still got the job!

Later when there was a problem with any of the macro, I just rewrote in
a high level language

--
Chris

Re: Very simple DCL question

<toqirm$15ap4$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sat, 31 Dec 2022 19:07:18 -0500
Organization: HoffmanLabs LLC
Lines: 109
Message-ID: <toqirm$15ap4$1@dont-email.me>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me> <toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me> <toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org> <00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org> <toq831$1af6$2@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="dba0ea92d80d9a818b4e549c8e39be8b";
logging-data="1223460"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WfBDgkGqPq/YYRuq7pCSJdEUW2fZS4M0="
User-Agent: Unison/2.2
Cancel-Lock: sha1:La26KDuBxCPbiUUmW4tMBNVlWe0=
 by: Stephen Hoffman - Sun, 1 Jan 2023 00:07 UTC

On 2022-12-31 21:03:24 +0000, Arne Vajhj said:

Didn't review the code, definitely some things I'd do different, but it
seems this code is expecting traditional (#8) and not extended (#16)
parsing.

> .title realp
> $SSDEF
> $DSCDEF
> SPACE=32
> PRC_C_CMDBUFSIZ=4097 ; 1025 on VAX
> PRC$W_PROCLEVEL=56
> .macro if_end_command,lbl
> cmpl r3,r4
> bgeq lbl
> .endm
> .macro if_space,lbl
> cmpb (r3),#SPACE
> beql lbl
> .endm
> .psect $PDATA quad,pic,con,lcl,shr,noexe,nowrt
> nomsg: .ascid "This is not run from first level COM file so no action taken"
> .psect $LOCAL quad,pic,con,lcl,noshr,noexe,wrt
> copy1: .blkb PRC_C_CMDBUFSIZ
> copy2: .blkb PRC_C_CMDBUFSIZ
> pnam: .ascid "P1"
> pval: .blkw 1
> .byte DSC$K_DTYPE_T
> .byte DSC$K_CLASS_S
> .address pvala
> pvala: .blkb 256
> .psect $CODE quad,pic,con,lcl,shr,exe,nowrt
> .entry realp,^m<r2,r3,r4,r5,r6>
> ; phase 1 : grab copy of recall buffer
> ; out r0 = command length
> ; out r1 = command address
> ; temp r2 & r3 for working storage
> ; temp r6 = pointer recall buffer P1 space
> movl #CTL$AG_CLIDATA,r6
> movl W^PPD$L_PRC(r6),r6
> cmpw W^PRC$W_PROCLEVEL(r6),#1 ; test if run from first
> level COM file
> bneq nogood
> movc3 #PRC_C_CMDBUFSIZ,W^PRC_G_COMMANDS(r6),copy1 ; make two
> copies of data to handle circular buffer
> movc3 #PRC_C_CMDBUFSIZ,W^PRC_G_COMMANDS(r6),copy2
> movab W^PRC_G_COMMANDS(r6),r2 ; find address next command
> movl W^PRC_L_RECALLPTR(r6),r3
> subl3 r2,r3,r1
> movab copy2,r6
> addl2 r6,r1
> subl2 #2,r1 ; find length current command
> cvtwl (r1),r0
> subl2 r0,r1 ; find address current command
> ; phase 2 : parse
> ; in r0 = command length
> ; in r1 = command address
> ; temp r2 = parameter number
> ; temp r3 = current character in command
> ; temp r4 = end of command
> ; temp r5 = current Pn output character
> movl r1,r3 ; current character = first character
> addl3 r0,r3,r4 ; find end of command
> ; skip command itself
> 100$: if_end_command done
> if_space start
> incl r3 ; skip if not space
> brb 100$
> ; process parameters
> start: incl r3 ; skip space between command
> itself and P1
> movl #1,r2 ; n = 1
> 200$: if_end_command done
> movw #0,pval ; reset parameter data
> movab pvala,r5
> 300$: if_end_command 500$
> if_space 400$
> incw pval ; add to parameter data
> movb (r3)+,(r5)+
> brb 300$
> 400$: incl r3 ; skip space between Pn and Pn+1
> 500$: pushl #0
> pushab pval ; set Pn symbol
> pushab pnam
> calls #3,G^LIB$SET_SYMBOL
> incb pnam+9 ; update Pn -> Pn+1
> incl r2 ; n = n + 1
> cmpl r2,#8 ; while n <= 8

#16

> bleq 200$
> brb done
> ; message due to to not being run from first level COM file
> nogood: pushab nomsg
> calls #1,G^LIB$PUT_OUTPUT
> ; all done
> done: movl #SS$_NORMAL,r0
> ret
> .end realp
>
> Arne

--
Pure Personal Opinion | HoffmanLabs LLC

Re: Very simple DCL question

<5c8d3719-8179-4df9-8e62-14afb89dffb3n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:a37:6348:0:b0:6fe:b359:4896 with SMTP id x69-20020a376348000000b006feb3594896mr1389208qkb.579.1672555836828;
Sat, 31 Dec 2022 22:50:36 -0800 (PST)
X-Received: by 2002:a05:620a:1384:b0:6ff:7cbe:3db1 with SMTP id
k4-20020a05620a138400b006ff7cbe3db1mr1903397qki.781.1672555836412; Sat, 31
Dec 2022 22:50:36 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.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: Sat, 31 Dec 2022 22:50:36 -0800 (PST)
In-Reply-To: <tohrrm$1e9u$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=47.44.161.171; posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 47.44.161.171
References: <tohrrm$1e9u$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5c8d3719-8179-4df9-8e62-14afb89dffb3n@googlegroups.com>
Subject: Re: Very simple DCL question
From: gah...@u.washington.edu (gah4)
Injection-Date: Sun, 01 Jan 2023 06:50:36 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1264
 by: gah4 - Sun, 1 Jan 2023 06:50 UTC

(snip)

> But are there any way to preserve pn case without
> double-quoting it?
Can you do it with CLD?

I do remember that TeX uses CLD, and I don't remember quoting command line arguments.

Re: Very simple DCL question

<tosa8p$1rbn$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sun, 1 Jan 2023 10:52:57 -0500
Organization: Aioe.org NNTP Server
Message-ID: <tosa8p$1rbn$1@gioia.aioe.org>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
<toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org>
<00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org>
<toq831$1af6$2@gioia.aioe.org> <toqirm$15ap4$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="60791"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Sun, 1 Jan 2023 15:52 UTC

On 12/31/2022 7:07 PM, Stephen Hoffman wrote:
> On 2022-12-31 21:03:24 +0000, Arne Vajhj said:
>> .title realp

> Didn't review the code, definitely some things I'd do different,

Probably also better. But ...

> but it
> seems this code is expecting traditional (#8) and not extended (#16)
> parsing.

>> cmpl r2,#8 ; while n <= 8

> #16

This is interesting. One can get COM files to accept 16 parameters?
How?

Arne

Re: Very simple DCL question

<tosarp$1e18m$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sun, 1 Jan 2023 17:03:05 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <tosarp$1e18m$1@dont-email.me>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
<toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org>
<00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org>
<toq831$1af6$2@gioia.aioe.org> <toqirm$15ap4$1@dont-email.me>
<tosa8p$1rbn$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 1 Jan 2023 16:03:05 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="eee693b7aa4b10a8bf34a920e4392eef";
logging-data="1508630"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZM2F3uZL+tIi30DyNp+Ww"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:YyTnX2tz5hjrD+W4Z7wD7GIuc+k=
Content-Language: sv
In-Reply-To: <tosa8p$1rbn$1@gioia.aioe.org>
 by: Jan-Erik Söderholm - Sun, 1 Jan 2023 16:03 UTC

Den 2023-01-01 kl. 16:52, skrev Arne Vajhøj:
> On 12/31/2022 7:07 PM, Stephen Hoffman wrote:
>> On 2022-12-31 21:03:24 +0000, Arne Vajhj said:
>>>          .title  realp
>
>> Didn't review the code, definitely some things I'd do different,
>
> Probably also better. But ...
>
>>                                                                   but it
>> seems this code is expecting traditional (#8) and not extended (#16)
>> parsing.
>
> >>          cmpl    r2,#8                   ; while n <= 8
>
> > #16
>
> This is interesting. One can get COM files to accept 16 parameters?
> How?
>
> Arne
>
>
>

Is it a mixup between number of COM file parameters
and number of sub-directoy levels?

Re: Very simple DCL question

<b1b36acd-5bfb-472b-932b-0de43abacbbcn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:75c3:0:b0:3a7:f6f9:cde5 with SMTP id z3-20020ac875c3000000b003a7f6f9cde5mr1003900qtq.459.1672590552445;
Sun, 01 Jan 2023 08:29:12 -0800 (PST)
X-Received: by 2002:a37:5441:0:b0:6ff:c9aa:e442 with SMTP id
i62-20020a375441000000b006ffc9aae442mr919022qkb.457.1672590552061; Sun, 01
Jan 2023 08:29:12 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.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: Sun, 1 Jan 2023 08:29:11 -0800 (PST)
In-Reply-To: <tosarp$1e18m$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:c0:8f20:b94:61d9:c9de:de7f:6672;
posting-account=cHmS7AoAAACMYAFH9kP9m4l8qjrXLvte
NNTP-Posting-Host: 2003:c0:8f20:b94:61d9:c9de:de7f:6672
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
<toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org>
<00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org>
<toq831$1af6$2@gioia.aioe.org> <toqirm$15ap4$1@dont-email.me>
<tosa8p$1rbn$1@gioia.aioe.org> <tosarp$1e18m$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b1b36acd-5bfb-472b-932b-0de43abacbbcn@googlegroups.com>
Subject: Re: Very simple DCL question
From: volker_h...@hotmail.com (Volker Halle)
Injection-Date: Sun, 01 Jan 2023 16:29:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2004
 by: Volker Halle - Sun, 1 Jan 2023 16:29 UTC

> > This is interesting. One can get COM files to accept 16 parameters?
> > How?

See DCL_CTLFLAGS bit 3

If clear (the default), command procedure supports the default eight optional parameters (that is, (P1,P2,...P8)). If set, command procedure supports up to sixteen optional parameters (that is, (P1,P2,...P16)). This is also applicable when using the CALL command to transfer control to a subroutine.

Reference: https://wiki.vmssoftware.com/DCL_CTLFLAGS

Volker.

Re: Very simple DCL question

<tosebe$1f6hh$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sun, 1 Jan 2023 12:02:38 -0500
Organization: HoffmanLabs LLC
Lines: 51
Message-ID: <tosebe$1f6hh$1@dont-email.me>
References: <00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org> <toq831$1af6$2@gioia.aioe.org> <toqirm$15ap4$1@dont-email.me> <tosa8p$1rbn$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="dba0ea92d80d9a818b4e549c8e39be8b";
logging-data="1546801"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iO4p3M1ymJ026HkDOhE1h3IOIsNv/fj4="
User-Agent: Unison/2.2
Cancel-Lock: sha1:sL6QCmig0gkmeDZ5T5UCerCjx7o=
 by: Stephen Hoffman - Sun, 1 Jan 2023 17:02 UTC

On 2023-01-01 15:52:57 +0000, Arne Vajhj said:

> On 12/31/2022 7:07 PM, Stephen Hoffman wrote:
>> On 2022-12-31 21:03:24 +0000, Arne Vajhj said:
>>> .title realp
>
>> Didn't review the code, definitely some things I'd do different,
>
> Probably also better. But ...
>
>> but it seems this code is expecting traditional (#8) and not extended
>> (#16) parsing.
>
> >> cmpl r2,#8 ; while n <= 8
>
> > #16
>
> This is interesting. One can get COM files to accept 16 parameters?
> How?

I'd usually suggest reading the manuals.

Officially: "With OpenVMS Version 8.4, DCL commands and qualifiers have
been enhanced to support upto [sic] 16 parameters as command line input
with command procedures. For more details on DCL enhancements, see the
HPE OpenVMS Version 8.4 New Features and Documentation Overview guide."

Alas, the OpenVMS User's Guide lacks this particular DCL update. "These
symbols, named P1, P2, and so on through P8", " and... P7 = "" P8 = ""
but no P9, and "DCL places parameters passed to command procedures in
the local symbols P1 to P8.", etc. I also see DCL examples with the
INQUIRE command used, too. 🤮

Somebody (and I'm pretty sure I know who it was) did fix the @
documentation in the DCL Dictionary, not that most folks will know or
will remember that @ is documented there.
https://docs.vmssoftware.com/vsi-openvms-dcl-dictionary-a-m/

I'd expect there are some other gaps in the docs for the features added
in the V8 era.

The docs need some help. Some recipes are needed, too. VSI was working
on their version of DEC TIMA/STARS articles (many of which are
effectively recipes), and which will help those with support.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: Very simple DCL question

<tosf7i$1f9u9$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: seaoh...@hoffmanlabs.invalid (Stephen Hoffman)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sun, 1 Jan 2023 12:17:38 -0500
Organization: HoffmanLabs LLC
Lines: 26
Message-ID: <tosf7i$1f9u9$1@dont-email.me>
References: <00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org> <toq831$1af6$2@gioia.aioe.org> <toqirm$15ap4$1@dont-email.me> <tosa8p$1rbn$1@gioia.aioe.org> <tosarp$1e18m$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="dba0ea92d80d9a818b4e549c8e39be8b";
logging-data="1550281"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+h5JlafP6DAv+HsiorYGesoI54jSkzWCE="
User-Agent: Unison/2.2
Cancel-Lock: sha1:qTwLbw4zseQ8xjbcqZZaaceXIlE=
 by: Stephen Hoffman - Sun, 1 Jan 2023 17:17 UTC

On 2023-01-01 16:03:05 +0000, Jan-Erik Sderholm said:

> Is it a mixup between number of COM file parameters and number of
> sub-directoy levels?

I've definitely been known to be forgetful, and worse, but I'm pretty
sure DCL supports P1 to P16 as of OpenVMS V8.4 See the DCL dictionary
@ doc, and see my other recent reply here.

Also pretty sure the directory depths on ODS-5 now max out at 255, and
not 8 or 16. See the ODS-5/EFS doc: "There can be up to 255 levels of
directories. The name of each directory can be up to 236 8-bit or 118
16-bit characters long..."

From an earlier discussion of the DCL P1 to P16 parameter support:
https://groups.google.com/g/comp.os.vms/c/KjlzbRje4go/m/ab3NOE7ZDRoJ

Lots of old code around with old limits, and probably some old doc with
old limits, too.

--
Pure Personal Opinion | HoffmanLabs LLC

Re: Very simple DCL question

<tosflk$gvu$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sun, 1 Jan 2023 12:25:08 -0500
Organization: Aioe.org NNTP Server
Message-ID: <tosflk$gvu$1@gioia.aioe.org>
References: <00B7FE97.234F3226@SendSpamHere.ORG>
<toivo9$1ls9$1@gioia.aioe.org> <toq831$1af6$2@gioia.aioe.org>
<toqirm$15ap4$1@dont-email.me> <tosa8p$1rbn$1@gioia.aioe.org>
<tosebe$1f6hh$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="17406"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Arne Vajhøj - Sun, 1 Jan 2023 17:25 UTC

On 1/1/2023 12:02 PM, Stephen Hoffman wrote:
> On 2023-01-01 15:52:57 +0000, Arne Vajhj said:
>
>> On 12/31/2022 7:07 PM, Stephen Hoffman wrote:
>>> On 2022-12-31 21:03:24 +0000, Arne Vajhj said:
>>>> .title  realp
>>
>>> Didn't review the code, definitely some things I'd do different,
>>
>> Probably also better. But ...
>>
>>> but it seems this code is expecting traditional (#8) and not extended
>>> (#16) parsing.
>>
>>  >>          cmpl    r2,#8                   ; while n <= 8
>>
>>  > #16
>>
>> This is interesting. One can get COM files to accept 16 parameters?
>> How?
>
> I'd usually suggest reading the manuals.

Fair enough.

But sometimes it is not easy to find the right place.

> Officially: "With OpenVMS Version 8.4, DCL commands and qualifiers have
> been enhanced to support upto [sic] 16 parameters as command line input
> with command procedures. For more details on DCL enhancements, see the
> HPE OpenVMS Version 8.4 New Features and Documentation Overview guide."
>
> Alas, the OpenVMS User's Guide lacks this particular DCL update. "These
> symbols, named P1, P2, and so on through P8", "  and... P7 = "" P8 = ""
> but no P9, and "DCL places parameters passed to command procedures in
> the local symbols P1 to P8.", etc.  I also see DCL examples with the
> INQUIRE command used, too. 🤮
>
> Somebody (and I'm pretty sure I know who it was) did fix the @
> documentation in the DCL Dictionary, not that most folks will know or
> will remember that @ is documented there.
> https://docs.vmssoftware.com/vsi-openvms-dcl-dictionary-a-m/

Yes. And it points to DCL_CTLFLAGS bit 3.

And that leads to:

https://wiki.vmssoftware.com/DCL_CTLFLAGS

So:

DCL_CTLFLAGS=8

in modparams.dat and autogen.

Maybe I will try it. Even though I don't really have a need
for 16 parameters.

Arne

Re: Very simple DCL question

<tosfp2$1cna3$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: FIRST.L...@vmssoftware.com (Robert A. Brooks)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sun, 1 Jan 2023 12:26:59 -0500
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <tosfp2$1cna3$1@dont-email.me>
References: <00B7FE97.234F3226@SendSpamHere.ORG>
<toivo9$1ls9$1@gioia.aioe.org> <toq831$1af6$2@gioia.aioe.org>
<toqirm$15ap4$1@dont-email.me> <tosa8p$1rbn$1@gioia.aioe.org>
<tosarp$1e18m$1@dont-email.me> <tosf7i$1f9u9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Jan 2023 17:26:58 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5f9bf040908f90850603b992fa798973";
logging-data="1465667"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gXbQdhWE6E1QuE/OpafxCEp/sq9nHGQ1MB4xPJiidyg=="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:X/9AnV05r6A8DU1HEufJTl4erEk=
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 221231-4, 12/31/2022), Outbound message
Content-Language: en-US
In-Reply-To: <tosf7i$1f9u9$1@dont-email.me>
 by: Robert A. Brooks - Sun, 1 Jan 2023 17:26 UTC

On 1/1/2023 12:17 PM, Stephen Hoffman wrote:

> Lots of old code around with old limits, and probably some old doc with old
> limits, too.

CMS, even the version that was updated for ODS-5, still had a hardcoded limit
of 8 depths of directories.

That issue was fixed in some VSI CMS release.

--

--- Rob

Re: Very simple DCL question

<tosfqf$gvu$2@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!aioe.org!LeVffQP25j5GAigzc2gaQA.user.46.165.242.75.POSTED!not-for-mail
From: arn...@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: Very simple DCL question
Date: Sun, 1 Jan 2023 12:27:43 -0500
Organization: Aioe.org NNTP Server
Message-ID: <tosfqf$gvu$2@gioia.aioe.org>
References: <tohrrm$1e9u$1@gioia.aioe.org> <toi1tl$3ul97$1@dont-email.me>
<toi2eu$ovs$1@gioia.aioe.org> <toi7m1$21mk$1@dont-email.me>
<toi9hp$33e$1@gioia.aioe.org> <toisqe$p0r$1@gioia.aioe.org>
<00B7FE97.234F3226@SendSpamHere.ORG> <toivo9$1ls9$1@gioia.aioe.org>
<toq831$1af6$2@gioia.aioe.org> <toqirm$15ap4$1@dont-email.me>
<tosa8p$1rbn$1@gioia.aioe.org> <tosarp$1e18m$1@dont-email.me>
<b1b36acd-5bfb-472b-932b-0de43abacbbcn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="17406"; posting-host="LeVffQP25j5GAigzc2gaQA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Arne Vajhøj - Sun, 1 Jan 2023 17:27 UTC

On 1/1/2023 11:29 AM, Volker Halle wrote:
>>> This is interesting. One can get COM files to accept 16 parameters?
>>> How?
>
> See DCL_CTLFLAGS bit 3
>
> If clear (the default), command procedure supports the default eight
> optional parameters (that is, (P1,P2,...P8)). If set, command
> procedure supports up to sixteen optional parameters (that is,
> (P1,P2,...P16)). This is also applicable when using the CALL command
> to transfer control to a subroutine. >
> Reference: https://wiki.vmssoftware.com/DCL_CTLFLAGS

So much to learn so little time.

I have a strong feeling that very few has set that bit.

Arne

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor