home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!charnel!rat!ucselx!crash!cmkrnl!jeh
- From: jeh@cmkrnl.com
- Newsgroups: comp.os.vms
- Subject: Using SEARCH on HELP...
- Message-ID: <1992Dec23.203646.1003@cmkrnl.com>
- Date: 24 Dec 92 04:36:46 GMT
- References: <1992Dec23.160636.27010@tigger.jvnc.net> <1992Dec23.203029.1002@cmkrnl.com>
- Organization: Kernel Mode Consulting, San Diego, CA
- Lines: 39
-
- In article <1992Dec23.203029.1002@cmkrnl.com>, jeh@cmkrnl.com writes:
- > In article <1992Dec23.160636.27010@tigger.jvnc.net>,
- >> In a DCL program, I would like to be able to determine what directory the
- >> invoked .com file is located in. I seem to remember a similar thread about
- >> 6 - 8 months ago, so I hope someone remembers the solution.
- >
- > General rule of DCL command procedures: If you want information about
- > something -- almost anything -- look at lexical functions. HELP LEXICALS
- > gives you a complete list. Unfortunately this is one of those cases where
- > you have to know the name by which VMS refers to something before you can
- > go looking for it.
-
- Next time you are faced with a similar problem -- you're willing to go looking
- in HELP but don't know the right words -- try something like this:
-
- $ library/help/extract=lexicals/outp=temp sys$help:helplib
-
- (Yes, helplib.hlb is w:re by default.) You now have a plain text file,
- TEMP.HLP, containing all of the text under HELP LEXICALS. It's about 300
- blocks. Next do
-
- $ search temp.hlp procedure
-
- which would have found
-
- PROCEDURE String File specification of the current
- command procedure. If used
-
- among others. If you do your searching from inside an editor you won't even
- have to go back to HELP to get the full information.
-
- p.s. Be a good user and delete temp.hlp when you're done.
-
- --- Jamie Hanrahan, Kernel Mode Consulting, San Diego CA
- drivers, internals, networks, applications, and training for VMS and Windows-NT
- uucp 'g' protocol guru and release coordinator, VMSnet (DECUS uucp) W.G., and
- Chair, Programming and Internals Working Group, U.S. DECUS VMS Systems SIG
- Internet: jeh@cmkrnl.com, hanrahan@eisner.decus.org, or jeh@crash.cts.com
- Uucp: ...{crash,eisner,uunet}!cmkrnl!jeh
-