<?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 Re: Limit to DCL parameter string size for Java Runtime.exec() in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656233#M40112</link>
    <description>Hi Jonathan,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I have noticed that it fails for parameter strings longer than&lt;BR /&gt;&amp;gt;&amp;gt; roughly 215 characters.&lt;BR /&gt;What error message are you getting ?&lt;BR /&gt;&lt;BR /&gt;Discussion on a similar problem -&lt;BR /&gt;&lt;A href="http://unix.derkeiler.com/Newsgroups/comp.os.vms/2004-12/1375.html" target="_blank"&gt;http://unix.derkeiler.com/Newsgroups/comp.os.vms/2004-12/1375.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
    <pubDate>Fri, 02 Jul 2010 12:21:52 GMT</pubDate>
    <dc:creator>P Muralidhar Kini</dc:creator>
    <dc:date>2010-07-02T12:21:52Z</dc:date>
    <item>
      <title>Limit to DCL parameter string size for Java Runtime.exec()</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656232#M40111</link>
      <description>I am using Java 1.5 Runtime.exec() to call DCL script as follows (below). I have noticed that it fails for parameter strings longer than roughly 215 characters. Does anyone know if there is a way to increase the number of characters that Runtime.exec() can handle ?  &lt;BR /&gt;&lt;BR /&gt;package XXX.filerelease;&lt;BR /&gt;import java.io.BufferedReader;&lt;BR /&gt;import java.io.IOException;&lt;BR /&gt;import java.io.InputStreamReader;&lt;BR /&gt;&lt;BR /&gt;import org.apache.log4j.Logger;&lt;BR /&gt;&lt;BR /&gt;public class FileReleaseVmsImpl implements FileReleaseIntf{&lt;BR /&gt;private String DUMMYEMAIL = "\"Test@test.com\"";&lt;BR /&gt;public String searchForFiles(FileReferenceVmsImpl fileReference) {&lt;BR /&gt;String result = "";&lt;BR /&gt;&lt;BR /&gt;String command = "findme.com"&lt;BR /&gt;+ " " + DUMMYEMAIL&lt;BR /&gt;+ " " + fileReference.getFormattedDateString()&lt;BR /&gt;+ " " + fileReference.getBatch()&lt;BR /&gt;+ " " + fileReference.getSequence();&lt;BR /&gt;&lt;BR /&gt;Runtime run = Runtime.getRuntime();&lt;BR /&gt;Process pr;&lt;BR /&gt;try {&lt;BR /&gt;pr = run.exec(command);&lt;BR /&gt;BufferedReader buf = new BufferedReader(new InputStreamReader(pr.getInputStream()));&lt;BR /&gt;String line = "";&lt;BR /&gt;while ((line = buf.readLine()) != null) {&lt;BR /&gt;result += line + "\n";&lt;BR /&gt;}&lt;BR /&gt;} catch (IOException e) {&lt;BR /&gt;result = MHConstants.FILE_RELEASE_SEARCH_FOR_FILES_VMS_ERROR;&lt;BR /&gt;return (result);&lt;BR /&gt;}&lt;BR /&gt;return result;&lt;BR /&gt;}&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Jul 2010 11:59:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656232#M40111</guid>
      <dc:creator>Jonathan O'Donovan</dc:creator>
      <dc:date>2010-07-02T11:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to DCL parameter string size for Java Runtime.exec()</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656233#M40112</link>
      <description>Hi Jonathan,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I have noticed that it fails for parameter strings longer than&lt;BR /&gt;&amp;gt;&amp;gt; roughly 215 characters.&lt;BR /&gt;What error message are you getting ?&lt;BR /&gt;&lt;BR /&gt;Discussion on a similar problem -&lt;BR /&gt;&lt;A href="http://unix.derkeiler.com/Newsgroups/comp.os.vms/2004-12/1375.html" target="_blank"&gt;http://unix.derkeiler.com/Newsgroups/comp.os.vms/2004-12/1375.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Fri, 02 Jul 2010 12:21:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656233#M40112</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-07-02T12:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to DCL parameter string size for Java Runtime.exec()</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656234#M40113</link>
      <description>Thanks - I have seen that post - the error message I get is &lt;BR /&gt;&lt;BR /&gt;%DCL-W-NOLBLS, label ignored - use only within command procedures&lt;BR /&gt; \_MBA26400:\&lt;BR /&gt;%DCL-W-NOCOMD, no command on line - reenter with alphabetic first character&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Actually, I am using a dcl wrapper file as described here : &lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1434352" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1434352&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;to invoke a second .com file. The wrapper .com file does not get invoked because the DCL command string is too long. Once it is shortened a little, the wrapper is called correctly and all works fine.</description>
      <pubDate>Fri, 02 Jul 2010 12:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656234#M40113</guid>
      <dc:creator>Jonathan O'Donovan</dc:creator>
      <dc:date>2010-07-02T12:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to DCL parameter string size for Java Runtime.exec()</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656235#M40114</link>
      <description>Hi Jonathan,&lt;BR /&gt;&lt;BR /&gt;Looks like the logical "JAVA$ENABLE_ENVIRONMENT_EXPANSION" might&lt;BR /&gt;help solve your problem.&lt;BR /&gt;&lt;BR /&gt;Refer the following link -&lt;BR /&gt;&lt;A href="http://sh.ncsd.k12.ca.us/java-docs/release_notes.html#javaenableenvironmentexp" target="_blank"&gt;http://sh.ncsd.k12.ca.us/java-docs/release_notes.html#javaenableenvironmentexp&lt;/A&gt;&lt;BR /&gt;-&amp;gt; Section "Using JAVA$ENABLE_ENVIRONMENT_EXPANSION"&lt;BR /&gt;&lt;BR /&gt;Check if this is applicable in your case.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Fri, 02 Jul 2010 12:38:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656235#M40114</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-07-02T12:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Limit to DCL parameter string size for Java Runtime.exec()</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656236#M40115</link>
      <description>Did&lt;BR /&gt; $ define/job JAVA$EXEC_TRACE true&lt;BR /&gt;give you some insight? If that has no effect, you may want to try&lt;BR /&gt; $ set verify&lt;BR /&gt;before starting Java.&lt;BR /&gt;&lt;BR /&gt;As already implicitly explained, java passes the command string to the spawned process via a mailbox. But before invoking your wrapper command file, there are Java generated define-commands for some process permanent files. With one of these settings you should be able to see them.&lt;BR /&gt;&lt;BR /&gt;You may get some insight in how the mailbox is used and whether that is the same mailbox you see in the error message.</description>
      <pubDate>Fri, 02 Jul 2010 13:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/limit-to-dcl-parameter-string-size-for-java-runtime-exec/m-p/4656236#M40115</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2010-07-02T13:46:10Z</dc:date>
    </item>
  </channel>
</rss>

