From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,191a21460452fe7c,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,191a21460452fe7c,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-05-12 17:34:19 PST Newsgroups: comp.os.vms,comp.sys.dec Path: bga.com!news.sprintlink.net!get.hooked.net!decwrl!hookup!news.kei.com!MathWorks.Com!solaris.cc.vt.edu!news.duke.edu!news-feed-1.peachnet.edu!gatech!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!cherokee!walter!sorcerer.scp.bellcore.com!wws From: wws@cc.bellcore.com (Wayne Scott) Subject: RMS Remote execution ... Message-ID: Followup-To: comp.os.vms Keywords: need help understanding fab$l_fna field... Sender: wws@sorcerer.scp.bellcore.com (Wayne Scott) Nntp-Posting-Host: 128.96.142.104 Reply-To: wws@cc.bellcore.com Organization: Bellcore X-Newsreader: mxrn 6.18-6 Date: Thu, 12 May 1994 17:35:18 GMT Xref: bga.com comp.os.vms:9700 comp.sys.dec:3139 Hi Folks: I'm trying to understand some old code I have to work with. One of the things it does is create a .COM procedure, then remotely execute it through RMS. I've been pouring through the RMS books but cannot find a certain syntax I see in the code. It puts a "TASK=" in the string assigned to fab$l_fna. Here's a snippet: ====================================================================== char comfile_buf[80+1]; struct FAB comfile_fab; struct RAB comfile_rab; char task_name[256]; long task_status; long status; long tmp; /* Initialize RMS structures */ comfile_fab = cc$rms_fab; comfile_rab = cc$rms_rab; comfile_rab.rab$l_fab = &comfile_fab; comfile_rab.rab$l_ubf = comfile_buf; comfile_rab.rab$w_usz = sizeof(comfile_buf); /* Create task string */ sprintf(task_name,"%s::\"TASK=%s\"",node,comfile); ^^^^^ /* Start the remote task by opening comfile_fab */ comfile_fab.fab$l_fna = task_name; comfile_fab.fab$b_fns = strlen(task_name); status = sys$open(&comfile_fab); if (!(status&1)) if (comfile_fab.fab$l_stv != 0) return(comfile_fab.fab$l_stv); else return(status); status = sys$connect(&comfile_rab); ====================================================================== I CANNOT find any references that mention the need for the "TASK=" in the string. Can someone point me to a reference, or explain what's going on here? Thanks, Wayne -- ---------------------------------------------- wws@cc.bellcore.com I'm just a soul whose intentions are good, Oh Lord, please don't let me be misunderstood.