Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SHOW LOGICAL

71 views
Skip to first unread message

Phillip Helbig---undress to reply

unread,
Mar 2, 2012, 3:06:54 PM3/2/12
to
If SHOW LOGICAL has an exact match, it displays it and nothing else. If
it has no match, it says so. However, if the argument to SHOW LOGICAL
contains a wildcard, then all the corresponding tables (e.g. those in
LNM$FILE_DEV or all if /TABLE=* was specified) are shown, even if they
have no match. An ugly workaround is

$ PIPE SHOW LOGICAL FOO/TABLE=* | SEARCH SYS$PIPE FOO

though this might not include all the information one wants.

Why can't show logical display only the tables with a match?

hb

unread,
Mar 3, 2012, 6:52:27 AM3/3/12
to
On Mar 2, 9:06 pm, hel...@astro.multiCLOTHESvax.de (Phillip Helbig---
Dunno. Buglet or defectlet? Looks a feature, now, and it is too late
for an incompatible change :-)

In your workaround, you don't have a wildcard in the argument. Anyway,
a slightly better workaround which includes more information is to
search for "= ", as in
$ pipe sh log decw$incl*/table=* | search sys$pipe "= "
"DECW$INCLUDE" = "SYS$SYSROOT:[DECW$INCLUDE]"
= "SYS$SYSROOT:[DECW$INCLUDE.EXTENSIONS]"
= "SYS$SYSROOT:[DECW$INCLUDE.ICE]"
= "SYS$SYSROOT:[DECW$INCLUDE.SM]"
$

VMS search uses RFAs to display a window which goes back as in /
window=(2,0). Unfortunately sys$pipe doesn't support RFAs. But if you
have GNV or a GNU grep on your system you may want to use:
$ pipe sh log decw$incl*/table=* | mc psx$root:[bin]grep "-iB2" "= "
(DECW$LOGICAL_NAMES)

"DECW$INCLUDE" = "SYS$SYSROOT:[DECW$INCLUDE]"
= "SYS$SYSROOT:[DECW$INCLUDE.EXTENSIONS]"
= "SYS$SYSROOT:[DECW$INCLUDE.ICE]"
= "SYS$SYSROOT:[DECW$INCLUDE.SM]"
$

Is that "all the information" you are looking for?

Hein RMS van den Heuvel

unread,
Mar 3, 2012, 12:01:21 PM3/3/12
to

> Why can't show logical display only the tables with a match?

Using perl as a workaround...

$ defin SYS$SYSROOT sys$common
$ pipe show log sys$sysro* | perl -ne "$t = $_ if /\(/; if (/=/) { print $t,$_; $t=q()}
(LNM$PROCESS_TABLE)
"SYS$SYSROOT" = "SYS$COMMON"
(LNM$SYSTEM_TABLE)
"SYS$SYSROOT" = "$1$DGA1:[SYS0.]"
= "SYS$COMMON:"


Hein

Jojimbo

unread,
Mar 3, 2012, 4:41:33 PM3/3/12
to
On Mar 3, 9:01 am, Hein RMS van den Heuvel
<heinvandenheu...@gmail.com> wrote:
> > Why can't show logical display only the tables with a match?
>
> Using perl as a workaround...

Sigh...

Isn't that how *ix got the way it is now? By everybody doing their
own thing. Rather than doing the right thing, everyone did their own
thing. Result being chaos and programmers walking around SOMA with
big egos, messenger bags and empty heads. I suggest they all go to
hell in return for the disasters that they have left behind. Anyone
for figuring out the Facebook API's?

Regards, J

Subcommandante XDelta

unread,
Mar 3, 2012, 5:09:18 PM3/3/12
to
!- This is a side comment, rather than a thread dispersant -
!-
!- Again, I am reminded, why it is important to preserve the culture
!- of the VMS way (of doing things), by hook or by crook, come hell or
!- high-water, it is too fine a construction and a discipline to be
!- relegated to the footnotes of history. Conceptual Literacy must be
!- preserved!
!-
!- Normal kernel programming is now resumed.

Paul Sture

unread,
Mar 3, 2012, 6:06:25 PM3/3/12
to
Dunno. As I read somewhere earlier this year, it's a sad day when the
finest brains emerging from universities are paid to encourage other
folks to click on links.

--
Paul Sture

Arne Vajhøj

unread,
Mar 3, 2012, 7:40:11 PM3/3/12
to
Somebody designed it that way many years ago.

It does not necessarily have some brilliant rationality.

But when coding something and it can be done in N different ways,
then you make a decision.

Arne



Richard B. Gilbert

unread,
Mar 4, 2012, 4:36:44 PM3/4/12
to
Clicking on links is a skill both useful and necessary these days.
It's right up there with using a dictionary and an encyclopedia!
It does NOT replace using dictionaries and encyclopedias, online or off,
nor is it a substitute for thought!

MG

unread,
Mar 12, 2012, 8:23:47 AM3/12/12
to
Very good point, that's certainly one of the many reasons why I like
VMS so much.

Fortunately I don't use, nor feel any need to, use "Facebook" or any
"social media". DR is enough 'social media' for me! (PHONE and MAIL
work just fine for contacting people.)

- MG
0 new messages