home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20539 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.7 KB  |  65 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!e2big.mko.dec.com!dbased.nuo.dec.com!quark.enet.dec.com!lionel
  3. From: lionel@quark.enet.dec.com (Steve Lionel)
  4. Subject: Re: Help a student in distress....
  5. Message-ID: <1993Jan7.202903.6170@dbased.nuo.dec.com>
  6. Lines: 52
  7. Sender: news@dbased.nuo.dec.com (USENET News System)
  8. Reply-To: lionel@quark.enet.dec.com (Steve Lionel)
  9. Organization: Digital Equipment Corporation, Nashua NH
  10. References:  <20242.2b4c180e@ul.ie>
  11. Date: Thu, 7 Jan 1993 20:29:03 GMT
  12.  
  13.  
  14. In article <20242.2b4c180e@ul.ie>, 9120092@ul.ie writes:
  15. |>(1) How come DEC manuals have most of their examples in Fortran?
  16. |>
  17.  
  18. They're not; most are in MACRO.  (There - does that make you feel better? :-))
  19.  
  20. The large number of FORTRAN examples relative to other high-level languages
  21. comes from several sources:
  22.  
  23.     1.  FORTRAN was the first VMS HLL and is still the most widely
  24.         used.
  25.  
  26.     2.  There was a book created called "Programming in VMS using VAX
  27.         FORTRAN" which had many FORTRAN examples; some of these migrated
  28.         to the regular VMS documentation.
  29.  
  30.     3.  A particular FORTRAN developer (ahem) has been particularly
  31.         dilligent in writing such examples and making sure that those
  32.         written by others are correct.  (That same developer also wrote
  33.         just about all of the Ada examples in the VMS manuals.)  The
  34.         Pascal developers have also been active in example creation, but
  35.         those from other languages less so.
  36.  
  37. The "Introduction to VMS System Services" does have a single example in 
  38. Ada, BASIC, COBOL, FORTRAN and Pascal; comparing these can give you a good
  39. idea of how to call system services (and RTL routines) in these assorted
  40. languages.  (This manual was updated for VMS V5.5; the V5.0 edition lacks
  41. an Ada example and contains several errors in the others.)
  42.  
  43. The RTL manuals in particular tried to get a good cross-section of languages
  44. used in their examples.  If you think you have a good example of a particular
  45. routine (ideally it should be short and self-contained), send it in (use the
  46. address on the Readers' Comment forms).
  47.  
  48.  
  49. |>(3) Does anybody have any working examples of SMG's used in Cobol (cough
  50. |>cough)?
  51. |>    In particular SMG$CREATE_MENU. I would really appreciate this as the
  52. |>    VMS ver 3 manuals that are available to me don't mention a thing
  53. |>    about it. I know about it 'cause it's in the Ver 5.? help facility.
  54.  
  55. The SMG$ manual in chapter 7 has a complete COBOL example of using SMG$
  56. routines.  I don't know if this was in the VMS Version 3 (?!) manuals you
  57. have.  Time to buy some new manuals!
  58. --
  59.  
  60. Steve Lionel                    lionel@quark.enet.dec.com
  61. SDT Languages Group
  62. Digital Equipment Corporation
  63. 110 Spit Brook Road
  64. Nashua, NH 03062
  65.