<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic sys$sndjbc in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940567#M35413</link>
    <description>The DCL command SUBMIT supports remote invocation in a non-clustered environment using the REMOTE qualifier&lt;BR /&gt;$ submit/remote node::dev:[dir]file.type&lt;BR /&gt;&lt;BR /&gt;The system service SYS$SNDJBC does not appear to support remote invocation in a non-clustered environment. I tried&lt;BR /&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;SJCDEF.H&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;  //char       *DclFile="NODE01::DKA100:[MYDIR]MYDCL.COM";&lt;BR /&gt;  char       *DclFile="DKA100:[MYDIR]MYDCL.COM";&lt;BR /&gt;  struct itmblk {&lt;BR /&gt;    short    buflen;&lt;BR /&gt;    short    code;&lt;BR /&gt;    char     *bufadr;&lt;BR /&gt;    int      retbuflen;&lt;BR /&gt;  } items[] = { { 9, SJC$_QUEUE, "SYS$BATCH", 0},&lt;BR /&gt;                { strlen(DclFile), SJC$_FILE_SPECIFICATION, DclFile, 0 },&lt;BR /&gt;                { 0 } };&lt;BR /&gt;  unsigned short        iosb[4];&lt;BR /&gt;  sys$sndjbcw( 0, SJC$_ENTER_FILE, 0, items, iosb, 0, 0 );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;with no luck whereas without the "NODE01" specification it works fine.&lt;BR /&gt;&lt;BR /&gt;Can anyone confirm? If true then I guess "submit/remote" is not implemented only using sys$sndjbc.&lt;BR /&gt;&lt;BR /&gt;Or am I doing something wrong?&lt;/SJCDEF.H&gt;&lt;/STRING.H&gt;</description>
    <pubDate>Wed, 07 Feb 2007 18:10:14 GMT</pubDate>
    <dc:creator>Claus Olesen</dc:creator>
    <dc:date>2007-02-07T18:10:14Z</dc:date>
    <item>
      <title>sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940567#M35413</link>
      <description>The DCL command SUBMIT supports remote invocation in a non-clustered environment using the REMOTE qualifier&lt;BR /&gt;$ submit/remote node::dev:[dir]file.type&lt;BR /&gt;&lt;BR /&gt;The system service SYS$SNDJBC does not appear to support remote invocation in a non-clustered environment. I tried&lt;BR /&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;SJCDEF.H&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;  //char       *DclFile="NODE01::DKA100:[MYDIR]MYDCL.COM";&lt;BR /&gt;  char       *DclFile="DKA100:[MYDIR]MYDCL.COM";&lt;BR /&gt;  struct itmblk {&lt;BR /&gt;    short    buflen;&lt;BR /&gt;    short    code;&lt;BR /&gt;    char     *bufadr;&lt;BR /&gt;    int      retbuflen;&lt;BR /&gt;  } items[] = { { 9, SJC$_QUEUE, "SYS$BATCH", 0},&lt;BR /&gt;                { strlen(DclFile), SJC$_FILE_SPECIFICATION, DclFile, 0 },&lt;BR /&gt;                { 0 } };&lt;BR /&gt;  unsigned short        iosb[4];&lt;BR /&gt;  sys$sndjbcw( 0, SJC$_ENTER_FILE, 0, items, iosb, 0, 0 );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;with no luck whereas without the "NODE01" specification it works fine.&lt;BR /&gt;&lt;BR /&gt;Can anyone confirm? If true then I guess "submit/remote" is not implemented only using sys$sndjbc.&lt;BR /&gt;&lt;BR /&gt;Or am I doing something wrong?&lt;/SJCDEF.H&gt;&lt;/STRING.H&gt;</description>
      <pubDate>Wed, 07 Feb 2007 18:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940567#M35413</guid>
      <dc:creator>Claus Olesen</dc:creator>
      <dc:date>2007-02-07T18:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940568#M35414</link>
      <description>As there is no info about what status code returned by the service, this may be because of the access permission of the disk directory filespec(DKA100:[MYDIR]MYDCL.COM) for the system running the queue, or the valid node name you specified may not be reachable. &lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Wed, 07 Feb 2007 19:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940568#M35414</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2007-02-07T19:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940569#M35415</link>
      <description>SUBMIT /REMOTE and PRINT /REMOTE (and the reason that it works rather differently than the typical command) is based on DECnet DAP protocol.  The command also works across operating systems with DECnet stacks.&lt;BR /&gt;&lt;BR /&gt;DECnet Phase IV architecture specs:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://ftp.digital.com/pub/DEC/DECnet/PhaseIV/" target="_blank"&gt;http://ftp.digital.com/pub/DEC/DECnet/PhaseIV/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://ftp.digital.com/pub/DEC/DECnet/PhaseIV/dap_v5_6_0.txt" target="_blank"&gt;http://ftp.digital.com/pub/DEC/DECnet/PhaseIV/dap_v5_6_0.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There may well be an API around for the DEC Distributed Queuing Service (DQS) package, and task-to-task DECnet is certainly feasible.  There's an example of task-to-task DCL over at the old Ask The Wizard area.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Feb 2007 20:08:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940569#M35415</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-02-07T20:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940570#M35416</link>
      <description>Claus,&lt;BR /&gt;&lt;BR /&gt;  Note that SUBMIT/REMOTE is incompatible with most (all?) other SUBMIT qualifiers. You can't specify queues, parameters, or other variations. It's done with a single bit in the FAB when the file is closed. It's exactly equivalent to the DCL code:&lt;BR /&gt;&lt;BR /&gt;$ OPEN/READ file NODE01:DKA100:[MYDIR]MYDCL.COM&lt;BR /&gt;$ CLOSE/DISPOSITION=SUBMIT file&lt;BR /&gt;&lt;BR /&gt;Similar constructs exist in most language RTLs, mostly on the CLOSE statement (sorry, I'm not sure what it looks like in C - probably direct RMS services).&lt;BR /&gt;&lt;BR /&gt;The trick to getting "full function" remote submission is to write your "real" SUBMIT command into a remote procedure and SUBMIT/REMOTE that (ie: an application of Hext's Law "All problems can be solved by the addition of one further level of indirection").</description>
      <pubDate>Wed, 07 Feb 2007 21:34:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940570#M35416</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-02-07T21:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940571#M35417</link>
      <description>Thank you for the replies.&lt;BR /&gt;&lt;BR /&gt;We are using OpenVMS accounts with almost all privileges incl. BYPASS&lt;BR /&gt;because we don't (think we) need security checks in what we're doing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The return status from the SNDJBC with the node specification included was&lt;BR /&gt;%SYSTEM-F-IVLOGNAM, invalid logical name&lt;BR /&gt;&lt;BR /&gt;But the following does work&lt;BR /&gt;$ submit/remote NODE01::DKA100:[MYDIR]MYDCL.COM&lt;BR /&gt;&lt;BR /&gt;(e.g. MYDCL.COM does exist on the remote node and user proxies do exist.&lt;BR /&gt;But to be sure I also tried NODE01"username password"::... in the C-program&lt;BR /&gt;but got the same error message).&lt;BR /&gt;&lt;BR /&gt;Before asking here I looked at the HP online Docs and also Googled and did&lt;BR /&gt;not anywhere find a confirmation of whether SNDJBC do or does not support&lt;BR /&gt;remote invocation. But perhaps if it did then HPs docs (system services&lt;BR /&gt; ref manual) would mention it.&lt;BR /&gt;&lt;BR /&gt;Thank you for the suggestions of alternatives. The reason I wanted to use&lt;BR /&gt;SNDJBC is that I wanted to use a mechanism that is ready "out-of-the-box"&lt;BR /&gt;without explicitly having to run and maintain a (special) server at the remote end.&lt;BR /&gt;&lt;BR /&gt;I think I'm leaning towards still using SNDJBC but to submit a local DCL that copies the "real" DCL to the remote node&lt;BR /&gt;followed by a submit/remote of that DCL and a delete of the DCL (either&lt;BR /&gt;by itself or from the local DCL).&lt;BR /&gt;&lt;BR /&gt;Thank you very much for replying and so quickly.</description>
      <pubDate>Wed, 07 Feb 2007 21:51:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940571#M35417</guid>
      <dc:creator>Claus Olesen</dc:creator>
      <dc:date>2007-02-07T21:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940572#M35418</link>
      <description>sys$sndjbc is specific to OpenVMS and to the OpenVMS queue manager, and AFAIK is not tied into the remote submission processing.&lt;BR /&gt;&lt;BR /&gt;I'd be very surprised if SUBMIT/REMOTE uses $sndjbc.  It opens up a remote connection and copies over the file.&lt;BR /&gt;&lt;BR /&gt;Here's a full DCL of an example task-to-task server:&lt;BR /&gt;&lt;A href="http://ftp.openvms.compaq.com/wizard/wiz_0159.html" target="_blank"&gt;http://ftp.openvms.compaq.com/wizard/wiz_0159.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;TELL.COM is here, and it allows arbitrary remote commands:&lt;BR /&gt;&lt;A href="http://vms.process.com/ftp/vms-freeware/NARNIA/COM/AAAREADME.TXT" target="_blank"&gt;http://vms.process.com/ftp/vms-freeware/NARNIA/COM/AAAREADME.TXT&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The usual approach for remote submissions involves FAL/DAP, or RMS.  (RMS is tied into FAL/DAP.)&lt;BR /&gt;&lt;BR /&gt;DQS is the usual tool for command operations.&lt;BR /&gt;&lt;BR /&gt;The brute-force solution is to SPAWN the SUBMIT/REMOTE command.&lt;BR /&gt;&lt;BR /&gt;Ping HP with your question.  Mayhap the documentation will be updated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Feb 2007 22:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940572#M35418</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-02-07T22:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940573#M35419</link>
      <description>&lt;BR /&gt;Claus,&lt;BR /&gt;&lt;BR /&gt;Welcome to the HP ITRC OpenVMS Forum&lt;BR /&gt;&lt;BR /&gt;Be sure to carefully re-read John Gillings reply. I suspect he is right (he is always right, trust me) in that SUBMIT might do a sndjc for the normal work, but an rms open + close with fab$v_scf=1 for the remote submit. Sorry, no soures access here to verify. Anyway award him 10 points!&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a demonstration in C:&lt;BR /&gt;&lt;BR /&gt;$ create scf.c&lt;BR /&gt;#include &lt;STDIO&gt;&lt;BR /&gt;main (int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;FILE *fp;&lt;BR /&gt;fp = fopen( argv[1], "r", "fop=scf", "dna=.COM" );&lt;BR /&gt;return (fclose ( fp ));&lt;BR /&gt;}&lt;BR /&gt;&lt;EXIT&gt;&lt;BR /&gt;$ cc scf&lt;BR /&gt;$ link scf&lt;BR /&gt;$ cre tmp.com&lt;BR /&gt;$SHOW TIME&lt;BR /&gt;&lt;EXIT&gt;&lt;BR /&gt;$ mcr sys$login:scf "0""user password""::tmp"&lt;BR /&gt;$ type tmp.log&lt;BR /&gt;:&lt;BR /&gt;&lt;BR /&gt;And now re-read John's closing paragraph on how to pass details.&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein&lt;BR /&gt;&lt;/EXIT&gt;&lt;/EXIT&gt;&lt;/STDIO&gt;</description>
      <pubDate>Wed, 07 Feb 2007 23:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940573#M35419</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-02-07T23:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940574#M35420</link>
      <description>Claus,,&lt;BR /&gt;&lt;BR /&gt;I join Hein in welcoming you.&lt;BR /&gt;&lt;BR /&gt;Please read &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;to find out how to thank those that helped.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Thu, 08 Feb 2007 03:26:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940574#M35420</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-02-08T03:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940575#M35421</link>
      <description>Claus,&lt;BR /&gt;&lt;BR /&gt;the SYS$SNDJBC system service is using IPC to talk to the appropriate QUEUE_MANAGER process in the local node or cluster. The IPC interprocess communication service does not support DECnet, it only works inside a cluster, so there is no way for $SNDJBC to send a message to a QUEUE_MANAGER to a remote node via DECnet.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Thu, 08 Feb 2007 13:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940575#M35421</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2007-02-08T13:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940576#M35422</link>
      <description>Thank you for your welcome. Yes - this is my first posting - here. I used to ask the wizard (wiz_3768.html was one of my bigger undertakings on the AXP. Besides, I'm pleasantly surprised to see that it works unmodified on the I64) and I'm sorry to see that the wizard is gone but happy to see this community forum in its place.&lt;BR /&gt;&lt;BR /&gt;I re-read your replies. Cool (sorry about that expression) - I'm going to go with your ideas e.g.&lt;BR /&gt;&lt;BR /&gt;to submit an existing remote file as a batch job on the remote system then the following&lt;BR /&gt;C-program statement is all that it takes&lt;BR /&gt;&lt;BR /&gt;fclose(fopen("NODE::DEV:[DIR]FILE.TYPE","r","fop=scf"));&lt;BR /&gt;&lt;BR /&gt;I had forgotten about the existence of the OpenVMS creat extensions. Two of the others are tmp and tmd according to help crtl creat. Anyone know the difference - for use in a case where the remote DCL has to be written dynamically from the C-program?&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2007 14:13:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940576#M35422</guid>
      <dc:creator>Claus Olesen</dc:creator>
      <dc:date>2007-02-08T14:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940577#M35423</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/4523/4523pro_005.html#742_fabl_fopfield" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/4523/4523pro_005.html#742_fabl_fopfield&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;"FAB$V_TMP&lt;BR /&gt;Temporary file; indicates that a temporary file is to be created and retained, but that no directory entry is to be made for it. This option is used solely as input to the Create service. If you have a NAM or NAML block, you are given the file identification (FID) of the file, which you can use to reopen the file. If you do not have a NAM or NAML block or if you do not save the FID, the file becomes inaccessible once it is closed. The FAB$V_TMD option overrides the FAB$V_TMP option. "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"FAB$V_TMD&lt;BR /&gt;Temporary file marked for delete; indicates that a temporary file is to be created but is to be deleted when the file is closed. This option is input only to the Create service. The FAB$V_TMD option takes precedence over the FAB$V_TMP option. "&lt;BR /&gt;&lt;BR /&gt;I don't think you can combine either with scf. The TMD woudl delete it before it is used by the job controller. The tmp option would be fine for submit, but you would not be able to readily delete the file when done.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Feb 2007 15:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940577#M35423</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-02-08T15:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: sys$sndjbc</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940578#M35424</link>
      <description>Thank you Hein&lt;BR /&gt;for the explanation of TMP v. TMD. (I guess the TMP option might be among a sys admins worst nightmares explaining where all that disk space went).&lt;BR /&gt;I'm all set - thanks again to everybody.&lt;BR /&gt;Claus</description>
      <pubDate>Thu, 08 Feb 2007 15:45:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-sndjbc/m-p/3940578#M35424</guid>
      <dc:creator>Claus Olesen</dc:creator>
      <dc:date>2007-02-08T15:45:28Z</dc:date>
    </item>
  </channel>
</rss>

