home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!decuac!pa.dec.com!nntpd2.cxo.dec.com!adserv.enet.dec.com!winalski
- From: winalski@adserv.enet.dec.com (Paul S. Winalski)
- Subject: Re: The problem with $CREMBX System_Service
- Message-ID: <1992Nov18.171216.26136@nntpd2.cxo.dec.com>
- Lines: 15
- Sender: usenet@nntpd2.cxo.dec.com (USENET News System)
- Reply-To: winalski@adserv.enet.dec.com (Paul S. Winalski)
- Organization: Digital Equipment Corporation, Nashua NH
- References: <14709.2b092769@ohstpy.mps.ohio-state.edu>
- Date: Wed, 18 Nov 1992 17:12:16 GMT
-
-
- The DCL command interpreter uses RMS to read its input file. RMS is a record-
- oriented I/O system. When the input device is a terminal, the sequence of
- characters up to a carriage return (or other similar line-terminating control
- character) is considered a single record. When the input device is a mailbox,
- RMS considers each message in the mailbox to be a separate record. You are
- reading characters one at a time from the terminal and then writing them one
- at a time using $QIO to the mailbox. Each character thus ends up as a separate
- message, and is seen as a separate record by DCL.
-
- The solution is to buffer characters inside your program until you read a
- CR from the terminal, then write the buffered string (not including the CR) to
- the mailbox using one $QIO.
-
- --PSW
-