<?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 passing parameters to dcl procedures run as detached processes in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603363#M7390</link>
    <description>Is it possible to pass P1-P8 parameters when running a dcl procedure as a detached process?&lt;BR /&gt;When I create an empty command file and execute it I see that P1-P8 are defined.&lt;BR /&gt;This is how I am starting the procedure.&lt;BR /&gt;$ RUN SYS$SYSTEM:LOGINOUT.EXE -&lt;BR /&gt;          /AUTHORIZE -&lt;BR /&gt;          /DETACHED -&lt;BR /&gt;          /INPUT=TESTDETACH.COM -&lt;BR /&gt;          /PROCESS_NAME="TESTDETACH" -&lt;BR /&gt;          /on=DEV2 -&lt;BR /&gt;          /PRIOR=4 -&lt;BR /&gt;          /OUTPUT=TESTDETACH.LOG -&lt;BR /&gt;          /ERROR=TESTDETACH.ERR -&lt;BR /&gt;</description>
    <pubDate>Sun, 14 Aug 2005 00:19:33 GMT</pubDate>
    <dc:creator>Jeff Bath</dc:creator>
    <dc:date>2005-08-14T00:19:33Z</dc:date>
    <item>
      <title>passing parameters to dcl procedures run as detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603363#M7390</link>
      <description>Is it possible to pass P1-P8 parameters when running a dcl procedure as a detached process?&lt;BR /&gt;When I create an empty command file and execute it I see that P1-P8 are defined.&lt;BR /&gt;This is how I am starting the procedure.&lt;BR /&gt;$ RUN SYS$SYSTEM:LOGINOUT.EXE -&lt;BR /&gt;          /AUTHORIZE -&lt;BR /&gt;          /DETACHED -&lt;BR /&gt;          /INPUT=TESTDETACH.COM -&lt;BR /&gt;          /PROCESS_NAME="TESTDETACH" -&lt;BR /&gt;          /on=DEV2 -&lt;BR /&gt;          /PRIOR=4 -&lt;BR /&gt;          /OUTPUT=TESTDETACH.LOG -&lt;BR /&gt;          /ERROR=TESTDETACH.ERR -&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Aug 2005 00:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603363#M7390</guid>
      <dc:creator>Jeff Bath</dc:creator>
      <dc:date>2005-08-14T00:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameters to dcl procedures run as detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603364#M7391</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;no, this is not possible. There is special handling for parameters P1 to P8 and BATCH$RESTART in LOGINOUT and the CLI for BATCH processes only.&lt;BR /&gt;&lt;BR /&gt;As another method to pass parameters to detached processes, you could use logical names (with DEFINE/CLUSTER if you want them to be available clusterwide as indicated by /on=DEV2 in your example).&lt;BR /&gt;&lt;BR /&gt;Or you could write a temporary input file containing the parameters and the invocation of @TESTDETACH.COM p1 ... p8 and use this file as the /INPUT=... file.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Sun, 14 Aug 2005 02:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603364#M7391</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-08-14T02:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameters to dcl procedures run as detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603365#M7392</link>
      <description>I actually to something similiar to the second example. I was looking to simplify the process a little. I played around with a mailbox but I figured that was just making things all little to complicated.&lt;BR /&gt;&lt;BR /&gt;I don't think define/cluster works until VMS 8.2 or 8.3 we are using 7.3-2 so I need to do define/table=lnm$syscluster....&lt;BR /&gt;&lt;BR /&gt;Thanks for the info.</description>
      <pubDate>Sun, 14 Aug 2005 02:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603365#M7392</guid>
      <dc:creator>Jeff Bath</dc:creator>
      <dc:date>2005-08-14T02:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameters to dcl procedures run as detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603366#M7393</link>
      <description>IN one client environment, I routine use logicals as ways of passing parameters to an already operating batch job. (Actually web server netserver processes...)&lt;BR /&gt;&lt;BR /&gt;Q&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Aug 2005 21:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603366#M7393</guid>
      <dc:creator>Peter Quodling</dc:creator>
      <dc:date>2005-08-14T21:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameters to dcl procedures run as detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603367#M7394</link>
      <description>Logical names would be the best bet although there are several differenct ways of passing the paramters.  For example the .COM could be something like &lt;BR /&gt;&lt;BR /&gt;$RUN PROGRAM.EXE&lt;BR /&gt;PARAMTER1-VALUE&lt;BR /&gt;PARAMETER2-VALUE&lt;BR /&gt;     .&lt;BR /&gt;     .&lt;BR /&gt;     .&lt;BR /&gt;PARAMETERN-VALUE&lt;BR /&gt;$ rest of the .com file after this&lt;BR /&gt;&lt;BR /&gt;Then the PROGRAM.EXE would simply use a read from the default input channel to get the values.&lt;BR /&gt;&lt;BR /&gt;This is not the ideal way though.  Logical names are best for passing small amounts of data between programs (1 - 256 bytes), Mailboxes are best for larger amounts of data (256-2048 bytes depending on your SYSGEN DEFMBXBUFQUO parameter value) and files are best for large blocks of data (&amp;gt;2048 bytes or the value of the SYSGEN DEFMBXBUFQUO value).  Depending on the amount of data that you need to send in the p1-p8 type of parameter you should choose which method to use.&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Mon, 15 Aug 2005 09:16:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603367#M7394</guid>
      <dc:creator>Phillip Thayer</dc:creator>
      <dc:date>2005-08-15T09:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameters to dcl procedures run as detached processes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603368#M7395</link>
      <description>Jeff,&lt;BR /&gt;&lt;BR /&gt;  As others have explained, there is no direct mechanism for passing parameters into a command procedure executing in a detached process, but it's a very simple matter to create a jacket procedure to do it and then delete itself. Extending your example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ OPEN/WRITE jack JACKET.COM&lt;BR /&gt;$ WRITE jack "$ @TESTDETACH ""''p1'"" ""''p2'"" etc.."&lt;BR /&gt;$ WRITE jack "$ DELETE 'F$ENVIRONMENT(""PROCEDURE"")'"&lt;BR /&gt;$ CLOSE jack&lt;BR /&gt;$&lt;BR /&gt;$ RUN SYS$SYSTEM:LOGINOUT.EXE -&lt;BR /&gt;/AUTHORIZE -&lt;BR /&gt;/DETACHED -&lt;BR /&gt;/INPUT=JACKET.COM -&lt;BR /&gt;/PROCESS_NAME="TESTDETACH" -&lt;BR /&gt;/on=DEV2 -&lt;BR /&gt;/PRIOR=4 -&lt;BR /&gt;/OUTPUT=TESTDETACH.LOG -&lt;BR /&gt;/ERROR=TESTDETACH.ERR -&lt;BR /&gt;...&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Aug 2005 20:43:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/passing-parameters-to-dcl-procedures-run-as-detached-processes/m-p/3603368#M7395</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-08-15T20:43:21Z</dc:date>
    </item>
  </channel>
</rss>

