home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / dec / 4498 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.8 KB  |  43 lines

  1. Newsgroups: comp.sys.dec
  2. Path: sparky!uunet!decwrl!deccrl!news.crl.dec.com!rdg.dec.com!ryn.mro4.dec.com!news
  3. From: blair@snogum.enet.dec.com (Blair Phillips - Digital)
  4. Subject: Re: How to read/write VMS (RMS?) disk blocks asynchronously
  5. Message-ID: <1992Aug13.002335.26208@ryn.mro4.dec.com>
  6. Lines: 30
  7. Sender: news@ryn.mro4.dec.com (USENET News System)
  8. Reply-To: Blair.Phillips@cao.mts.dec.com
  9. Organization: Digital Equipment Corporation
  10. References:  <MRL.92Aug11103051@sun4.uai.com>
  11. Date: Thu, 13 Aug 1992 00:23:35 GMT
  12.  
  13.  
  14. In article <MRL.92Aug11103051@sun4.uai.com>, mrl@uai.com (Mark R. Ludwig) writes:
  15. >
  16. >I'm looking for RTFM pointers.  
  17. >
  18. >I currently have a Fortran application using $READ and $WRITE
  19. >(SYS$READ and SYS$WRITE, actually) to read and write file blocks.  The
  20. >higher-level application supports the idea that I/O may be
  21. >asynchronous for better throughput by overlapping computing with I/O.
  22. >
  23. >I've read much of the RMS Reference, and concluded that the
  24. >asynchronous support there is quite limited, because it only allows
  25. >one operation at a time (on a FAB, or RAB, I forget exactly which).
  26. >For our application it is not feasible to have multiple FABs or RABs
  27. >for a single file.
  28. >
  29. The simplest way to do what you want is to open the file using RMS specifying
  30. the User File Open option (UFO) in the FOP field of the FAB. The channel number
  31. assigned is returned in the FAB$L_STV field, and you then use that to do
  32. normal $QIO's on the file. As long as you stick to virtual i/o (i.e. block
  33. specified within the file) no special privs. are needed.
  34.  
  35. There are a few caveats - look up the RMS manual for details.
  36.  
  37. --
  38. ----------
  39. Blair Phillips                    Blair.Phillips@cao.mts.dec.com
  40. Digital Equipment Corp (Aust) P/L        Phone: (+61 6) 2754874
  41. 7-11 Barry Drive, Turner, ACT 2601 AUSTRALIA    FAX  : (+61 6) 2473654
  42.  
  43.