From - Thu Sep 25 07:52:18 1997 Lines: 37 NNTP-Posting-Server: vnntp.montagar.com NNTP-Posting-Host: swbcs001.sbc.com Message-ID: <34297163.2642@montagar.com> Date: Wed, 24 Sep 1997 15:00:35 -0500 From: David Cathey Reply-To: davidc@montagar.com Organization: Montagar Software Concepts X-Mailer: Mozilla 3.03 (Win95; I) MIME-Version: 1.0 Newsgroups: comp.os.vms Subject: Re: *Opposite problem now... Was: [any help on sys$qiow(...)? ] References: <01BCC875.9721B9F0.rockwell@umkc.edu> <3428CD5E.6F06AE33@qnet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Path: news.mitre.org!blanket.mitre.org!philabs!newsjunkie.ans.net!newsfeeds.ans.net!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.internetmci.com!208.133.32.2!andromeda.vec.net!vnntp.montagar.com!usenet Rich Deeming wrote: > > Ron, > In reading, I can't help but go back to the original problem stated. > > > The difference between what i am trying to achieve is that in the > example program, > > the file is written initially using the sys$put service. my > application requires though > > that i do the initial writing of the file with qio however, because > of the AST completion > > which will accept a parameter. RMS does not allow a parameter to be > passed to the > > completion routine. > > The parameter(s) you wish to be passed to the AST routine could be > obtained using a global reference. No! RMS does allow passing of context-specific data to the completion AST routines. Instead of passing a longword as an ASTPRM (a la $QIO), put the longword value in FAB$L_CTX or RAB$L_CTX (depending up the call, naturally) and you can reference your context-specific data from that field. The ASTPRM of the RMS call will be the address of your FAB or RAB for which the completion AST is for. So you can check the XXX$L_STS/XXX$L_STV to determine the completion status, pull the XXX$L_CTX to get the thread/whatever specific data you need to reference and proceed much as you would with a $QIO AST completion. I pass data-structure addresses via the XXX$L_CTX fields across completion AST's all the time, even with DECthreaded code. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - David L. Cathey |Inet: davidc@montagar.com Montagar Software Concepts |Fone: (972) 578-5036 P. O. Box 260772, Plano, TX 75026 |http://www.montagar.com Junk E-Mail filtered by WhiteICE |http://www.whiteice.com