home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21968 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  2.1 KB

  1. Path: sparky!uunet!paladin.american.edu!gatech!news.ans.net!cmcl2!rlgsc.com!gezelter
  2. From: gezelter@rlgsc.com
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Can DCL programs execute 'other' commands ?
  5. Message-ID: <1993Jan25.163330.342@rlgsc.com>
  6. Date: 25 Jan 93 16:33:30 EST
  7. References: <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET>
  8. Distribution: world
  9. Organization: Robert Gezelter Software Consultant, Flushing, NY
  10. Lines: 49
  11.  
  12. In article <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET>, HANY@JCSVAX1.BITNET writes:
  13. > Hi ..
  14. >         I am new to writing DCL programs. I tried to make a program
  15. > execute commands other than those issued at the '$' prompt, but just
  16. > couldn't figure out how to do it. For example .. What would be the code
  17. > for a program that would read 2 mail messages, then return back to the
  18. > '$' ? .. The following did NOT work :
  19. > $ mail
  20. > $ read 1
  21. > $ read 2
  22. > $ exit
  23. > Thanks for any help.
  24. > Hany.
  25. > [ e-mail: hany@jcsvax1.bitnet
  26. >       or: hany%jcsvax1.bitnet@pucc.princeton.edu ]
  27. -- 
  28. Hany,
  29.  
  30. The correct format for the input (file SYS$INPUT) to a program 
  31. requested from a command file or batch stream is:
  32.  
  33.           $ mail
  34.           read 1
  35.           read 2
  36.           exit
  37.           $! This is the command following the last MAIL command.
  38.  
  39. The "$" will signal an End of File to the requested image in most 
  40. cases (but not all, see the DECK command).
  41.  
  42. The detailed behavior of this facilily is documented in both 
  43. documentation sets, and in the HELP facility.
  44.  
  45. I hope that the above information is helpful. If I have been 
  46. unclear, or if I can be of further assistance, please feel free 
  47. to contact me via Email or phone.
  48.  
  49. - Bob
  50. +--------------------------------------------------------------------------+
  51. | Robert "Bob" Gezelter                       E-Mail:  gezelter@rlgsc.com  |
  52. | Robert Gezelter Software Consultant         Voice:   +1 718 463 1079     |
  53. | 35-20 167th Street, Suite 215               Fax:       (on Request)      |
  54. | Flushing, New York  11358-1731                                           |
  55. | United States of America                                                 |
  56. +--------------------------------------------------------------------------+
  57.