[Info-vax] Very simple DCL question

Craig A. Berry craigberry at nospam.mac.com
Wed Dec 28 15:07:28 EST 2022


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.




More information about the Info-vax mailing list