home *** CD-ROM | disk | FTP | other *** search
- 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
- From: sabotkap@woods.ulowell.edu
- Newsgroups: comp.os.vms
- Subject: Re: Can DCL programs execute 'other' commands ?
- Message-ID: <1993Jan25.150852.1@woods.ulowell.edu>
- Date: 25 Jan 93 20:08:52 GMT
- References: <01GTUMJYR28G8Y6FL7@JCSVAX1.BITNET> <1993Jan24.225809.17160@nntpd.lkg.dec.com>
- Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
- Organization: University of Lowell
- Lines: 37
-
- francini@narfvx.enet.dec.com (John Francini) writes:
- ->
- -> $ mail
- -> read 1
- -> read 2
- -> exit
- -> $ more-dcl-stuff
- ->
- ->
- -> Be aware that DCL will not perform symbol substitution on data lines fed to
- -> programs. [I personally think this is most unfortunate, but I have no
- -> input to VMS development...]
- ->
- -> John Francini
-
- A workaround to this limitation would be something along the lines of the
- following:
- $ symbol = "This is a test string"
- $ open/write outfile TEST.COM
- $ write outfile "$ MAIL
- $ write outfile "''symbol'"
- $ write outfile "quit"
- $ write outfile "$ EXIT"
- $ close outfile
-
- (TEST.COM)
- $ MAIL
- This is a test string
- quit
- $ EXIT
-
- You now have a command file that has symbol substitution for input
- to an image (granted, this is 'kludgy', but it works well for
- some applications.
-
- Peter Sabotka, Meteorology Dept.
- University of Massachusetts - Lowell sabotkap@woods.ulowell.edu
-