home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- 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
- From: lionel@quark.enet.dec.com (Steve Lionel)
- Subject: Re: Help a student in distress....
- Message-ID: <1993Jan7.202903.6170@dbased.nuo.dec.com>
- Lines: 52
- Sender: news@dbased.nuo.dec.com (USENET News System)
- Reply-To: lionel@quark.enet.dec.com (Steve Lionel)
- Organization: Digital Equipment Corporation, Nashua NH
- References: <20242.2b4c180e@ul.ie>
- Date: Thu, 7 Jan 1993 20:29:03 GMT
-
-
- In article <20242.2b4c180e@ul.ie>, 9120092@ul.ie writes:
- |>(1) How come DEC manuals have most of their examples in Fortran?
- |>
-
- They're not; most are in MACRO. (There - does that make you feel better? :-))
-
- The large number of FORTRAN examples relative to other high-level languages
- comes from several sources:
-
- 1. FORTRAN was the first VMS HLL and is still the most widely
- used.
-
- 2. There was a book created called "Programming in VMS using VAX
- FORTRAN" which had many FORTRAN examples; some of these migrated
- to the regular VMS documentation.
-
- 3. A particular FORTRAN developer (ahem) has been particularly
- dilligent in writing such examples and making sure that those
- written by others are correct. (That same developer also wrote
- just about all of the Ada examples in the VMS manuals.) The
- Pascal developers have also been active in example creation, but
- those from other languages less so.
-
- The "Introduction to VMS System Services" does have a single example in
- Ada, BASIC, COBOL, FORTRAN and Pascal; comparing these can give you a good
- idea of how to call system services (and RTL routines) in these assorted
- languages. (This manual was updated for VMS V5.5; the V5.0 edition lacks
- an Ada example and contains several errors in the others.)
-
- The RTL manuals in particular tried to get a good cross-section of languages
- used in their examples. If you think you have a good example of a particular
- routine (ideally it should be short and self-contained), send it in (use the
- address on the Readers' Comment forms).
-
-
- |>(3) Does anybody have any working examples of SMG's used in Cobol (cough
- |>cough)?
- |> In particular SMG$CREATE_MENU. I would really appreciate this as the
- |> VMS ver 3 manuals that are available to me don't mention a thing
- |> about it. I know about it 'cause it's in the Ver 5.? help facility.
-
- The SMG$ manual in chapter 7 has a complete COBOL example of using SMG$
- routines. I don't know if this was in the VMS Version 3 (?!) manuals you
- have. Time to buy some new manuals!
- --
-
- Steve Lionel lionel@quark.enet.dec.com
- SDT Languages Group
- Digital Equipment Corporation
- 110 Spit Brook Road
- Nashua, NH 03062
-