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