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

  1. Path: sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!hri.com!noc.near.net!nic.umass.edu!umassd.edu!ulowell!woods.ulowell.edu!sabotkap
  2. From: sabotkap@woods.ulowell.edu
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Can DCL programs execute 'other' commands ?
  5. Message-ID: <1993Jan25.150852.1@woods.ulowell.edu>
  6. Date: 25 Jan 93 20:08:52 GMT
  7. References: <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET> <1993Jan24.225809.17160@nntpd.lkg.dec.com>
  8. Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
  9. Organization: University of Lowell
  10. Lines: 37
  11.  
  12. francini@narfvx.enet.dec.com (John Francini) writes:
  13. ->  
  14. ->  $ mail
  15. ->  read 1
  16. ->  read 2
  17. ->  exit
  18. ->  $ more-dcl-stuff
  19. ->  
  20. ->  
  21. ->  Be aware that DCL will not perform symbol substitution on data lines fed to
  22. ->  programs.  [I personally think this is most unfortunate, but I have no
  23. ->  input to VMS development...]
  24. ->  
  25. ->  John Francini
  26.  
  27. A workaround to this limitation would be something along the lines of the 
  28. following:
  29.             $ symbol = "This is a test string"
  30.             $ open/write outfile TEST.COM
  31.             $ write outfile "$ MAIL
  32.             $ write outfile "''symbol'"
  33.             $ write outfile "quit"
  34.             $ write outfile "$ EXIT"
  35.             $ close outfile
  36.             
  37.             (TEST.COM)
  38.             $ MAIL
  39.                         This is a test string
  40.             quit
  41.             $ EXIT
  42.  
  43. You now have a command file that has symbol substitution for input
  44. to an image (granted, this is 'kludgy', but it works well for 
  45. some applications.
  46.  
  47. Peter Sabotka, Meteorology Dept.           
  48. University of Massachusetts - Lowell      sabotkap@woods.ulowell.edu
  49.