odd PH/VMS logical name behaviour

Chris Sharman chris.sharman@ccagroup.co.uk
Thu, 11 Mar 2004 15:14:59 +0000


Lorry Litman wrote:

> 
> I have found the same result testing on PH7.10.G1 under both VMS7.2-2 
> and VMS7.3-1.
> It appears that we are also using the VMS default of case_blind and from 
> the result of the test I gather PH is not.
> As pointed out, it does make a difference if you use double quotes when 
> defining the logical name. i.e. $define "test" quoteval is different 
> from $define test noquoteval
> However, I assume because case_blind is on if you do $show logical t* 
> you will only see the last test logical name that you defined. If you 
> change the case i.e $def "Test" quoteval, and $def test noquoteval, and 
> do $show logical t* you will see both.
> So it does appear that VMS does distinguish between the two on the 
> define side but not on the translate side.

Think sh log does distinguish:
sho log "t*" ! finds neither
sho log t* ! finds both
sho log "T*" ! finds both
sho log te* ! finds the unquoted
sho log "Te*" ! finds the quoted.

* naturally matches upper and lowercase.
Can't find a switch to specify case blind, but there may not be one - 
there's no documented api to do wildcard searches: sho log uses an 
undocumented service call. You can certainly specify case 
blind/sensitive to sys$trnlnm and f$trnlnm.

> To deassign the above you would have to $deas "test" and $deas test.
> I've never used a double quote around a logical name so I can't say if 
> this behaved this way under previous versions of PH & VMS.

It's always been in VMS, I believe; but DCL's uppercasing of everything 
by default has obscured it.

Chris


-----------------------------------------------------------------------

Any views expressed in this message are those of the sender and not
necessarily those of CCA Group.  The unauthorized use, disclosure,
copying or alteration of this message is forbidden.  The contents of
this message may be confidential and/or privileged, copyright CCA Group
and are intended solely for the use of the individual or entity to whom
they are addressed.  Whilst this message has been scanned, CCA Group
cannot guarantee that it is virus free or compatible with your systems
and accepts no responsibility for any loss or damage arising from its
use. The recipient is advised to run their own anti-virus software. If
you receive this message in error please contact
postmaster@ccagroup.co.uk immediately, destroy any copies and delete it
from your computer systems.