home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / vms / 18141 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.5 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: The problem with $CREMBX System_Service
  5. Date: 17 Nov 1992 23:42:03 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 35
  8. Distribution: world
  9. Message-ID: <1ec00bINNc33@gap.caltech.edu>
  10. References: <14709.2b092769@ohstpy.mps.ohio-state.edu>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <14709.2b092769@ohstpy.mps.ohio-state.edu>, viznyuk@ohstpy.mps.ohio-state.edu writes:
  15. >Now the problem is that DCL which is run in the subprocess
  16. >started by LIB$SPAWN  understands each write made by second
  17. >SYS$QIO above, as if it is followed by <RET> keystroke, that
  18. >is as if terminal is in "raw" mode.
  19. >Does anybody know how to make DCL in subprocess read
  20. >data from mailbox in its usual way - by strings, not by
  21. >single chars ?   May be I missed some flags ?
  22.  
  23. You're terribly confused.  DCL reads the mailbox BY RECORD.  Not by "strings"
  24. (whatever the hell that's supposed to mean), not by characters, by RECORDS. 
  25. One record for each time you write to the mailbox via a QIO.
  26.  
  27. Most programs will then treat the mailbox as having implied carriage control.
  28. DCL, however, does NOT do this.  In particular, if you use the DCL OPEN and
  29. READ commands to read the mailbox, you won't see the spurious carriage return.
  30.  
  31. You WILL, however, get only as much as was written by a single QIO.  It's got
  32. nothing to do with DCL, that's the way the mailbox device works.  Just do a
  33. SHOW DEVICE/FULL if you don't belive me:
  34.  
  35. Device MBA7230: is online, record-oriented device, shareable, mailbox device.
  36.  
  37.     Error count                    0    Operations completed                  1
  38.     Owner process                 ""    Owner UIC                   [WFPC,CARL]
  39.     Owner process ID        00000000    Dev Prot                S:,O:RWLP,G:,W:
  40.     Reference count                1    Default buffer size                 256
  41. --------------------------------------------------------------------------------
  42. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  43.  
  44. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  45. understanding of astronomy is purely at the amateur level (or below).  So
  46. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  47. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  48. hold me responsible for it, but my organization had nothing to do with it.
  49.