home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19826 < prev    next >
Encoding:
Internet Message Format  |  1992-12-24  |  2.2 KB

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