<?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 VMS - How to pass parameters to to an executable through DCL script in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129590#M91106</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have got one executable(i.e. run mc$img:xx.exe)which asks few parameter values during the execution. Now I want to automate the entire thing through a DCL script to run in  a batch job every hour. &lt;BR /&gt;&lt;BR /&gt;Please suggest.</description>
    <pubDate>Fri, 12 Sep 2008 13:01:55 GMT</pubDate>
    <dc:creator>Sk Noorul  Hassan</dc:creator>
    <dc:date>2008-09-12T13:01:55Z</dc:date>
    <item>
      <title>VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129590#M91106</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have got one executable(i.e. run mc$img:xx.exe)which asks few parameter values during the execution. Now I want to automate the entire thing through a DCL script to run in  a batch job every hour. &lt;BR /&gt;&lt;BR /&gt;Please suggest.</description>
      <pubDate>Fri, 12 Sep 2008 13:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129590#M91106</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2008-09-12T13:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129591#M91107</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;Your script shoud begin with &lt;BR /&gt;&lt;BR /&gt;$! get the name of the proc file&lt;BR /&gt;$ self = F$PARSE(";",F$ENVIRONMENT("PROCEDURE"))&lt;BR /&gt;$ subm/after="+01:00:00" 'self /que=xxx...&lt;BR /&gt;$ ! then run your .exe and pass the parameters</description>
      <pubDate>Fri, 12 Sep 2008 13:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129591#M91107</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2008-09-12T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129592#M91108</link>
      <description>&lt;BR /&gt;I mean, how to pass the parameteres to the executable inside a dcl script?</description>
      <pubDate>Fri, 12 Sep 2008 13:43:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129592#M91108</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2008-09-12T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129593#M91109</link>
      <description>Hassan,&lt;BR /&gt;&lt;BR /&gt;that depends on HOW the exe expects he params!&lt;BR /&gt;&lt;BR /&gt;But an educated guess:&lt;BR /&gt;_IF_ the exe reads from standard input (SYS$INPUT), then&lt;BR /&gt;&lt;BR /&gt;(beware of line wrapping!)&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;$ define/user SYS$INPUT SYS$COMMAND ! equate the command stream to the inputdevice for the duration of ONE image&lt;BR /&gt;$ run mc$img:xx&lt;BR /&gt;1st param&lt;BR /&gt;2nd param&lt;BR /&gt;3rd param&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;$ ! (any line starting with $ ends inout, and is the next DCL command)&lt;BR /&gt;&lt;BR /&gt;be aware that _NO_ value substitution is done during parameter reading! If that is needed, a temporary COM file needs to be generated &amp;amp; @-ed.&lt;BR /&gt;-- Or the image must be able to take in parameters from the command line, in which case more info about the source of it is needed.&lt;BR /&gt;&lt;BR /&gt;hth&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>Fri, 12 Sep 2008 13:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129593#M91109</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2008-09-12T13:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129594#M91110</link>
      <description>Hassan,&lt;BR /&gt;&lt;BR /&gt;one more thing.&lt;BR /&gt;&lt;BR /&gt;To get the parameters INTO the batch job, add&lt;BR /&gt;/PARAMS=(1st,[2nd],[3rd,[...]]]]&lt;BR /&gt;to the SUBMIT command.&lt;BR /&gt;And if you use the param-per-line mechanism I gave before, you DEFINITELY need the temporary COM file mechanism!&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>Fri, 12 Sep 2008 13:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129594#M91110</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2008-09-12T13:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129595#M91111</link>
      <description>&lt;!--!*#--&gt;Jan wrote:&lt;BR /&gt;&amp;gt;$ define/user SYS$INPUT SYS$COMMAND ! equate the command stream to the inputdevice for the duration of ONE image&lt;BR /&gt;&amp;gt;$ run mc$img:xx&lt;BR /&gt;&amp;gt;1st param&lt;BR /&gt;&amp;gt;2nd param&lt;BR /&gt;&amp;gt;3rd param&lt;BR /&gt;&lt;BR /&gt;Hassan,&lt;BR /&gt;&lt;BR /&gt;Jan mis-spoke.  Do NOT use:&lt;BR /&gt;$ define/user SYS$INPUT SYS$COMMAND&lt;BR /&gt;in a batch file.  If the program is reading input from standard input (SYS$INPUT on VMS) just use the lines that come after it.&lt;BR /&gt;&lt;BR /&gt;Basically lines that begin with a $ character are interpreted by DCL, but if a program is run than any lines after the $ line that runs the program (not counting a - continuation line) are passed as input to the program.  The next line that begins with a $ ends the program input (if the program tries to read more lines it gets end-of-file).&lt;BR /&gt;&lt;BR /&gt;It's also possible that your program will parse its parameters from a command line.  If so to use a command line you can do:&lt;BR /&gt;&lt;BR /&gt;$ MCR mc$img:xx.exe param1 param2 param3&lt;BR /&gt;&lt;BR /&gt;which works the same interactively or in a batch job.</description>
      <pubDate>Fri, 12 Sep 2008 14:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129595#M91111</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2008-09-12T14:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129596#M91112</link>
      <description>RE:"Please suggest"&lt;BR /&gt;&lt;BR /&gt;Download &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/DOCUMENTATION/PDF/OVMS_731_USERS.PDF" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/DOCUMENTATION/PDF/OVMS_731_USERS.PDF&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and at least skim chapters 13-16.&lt;BR /&gt;&lt;BR /&gt;If you do programming in a compiled language, you should also grab the programming concepts documenttion:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82FINAL/5841/aa-rnshd-te.PDF" target="_blank"&gt;http://h71000.www7.hp.com/doc/82FINAL/5841/aa-rnshd-te.PDF&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/5841/aa-pv67h-tk.PDF" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/5841/aa-pv67h-tk.PDF&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you are responsible for the system, you should know what is in the system manager's essentials:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="ftp://ftp.hp.com/pub/openvms/doc/AA-PV5MJ-TK.PDF" target="_blank"&gt;ftp://ftp.hp.com/pub/openvms/doc/AA-PV5MJ-TK.PDF&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and have the second volume on hand for reference.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82FINAL/aa-pv5nj-tk/aa-pv5nj-tk.PDF" target="_blank"&gt;http://h71000.www7.hp.com/doc/82FINAL/aa-pv5nj-tk/aa-pv5nj-tk.PDF&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;++++++++++++++++++++++&lt;BR /&gt;&lt;BR /&gt;If you want more focused answers, please show us an example of what types of parameters the xx.exe is asking.&lt;BR /&gt;&lt;BR /&gt;Normally, I think of parameters as something that is passed to the program without being prompted.  For example the name of a user you want to see info about&lt;BR /&gt;&lt;BR /&gt;$ show user system&lt;BR /&gt;&lt;BR /&gt;That is relatively easy to do in a command procedure.&lt;BR /&gt;&lt;BR /&gt;$! myshowuser.com&lt;BR /&gt;$! wrapper for show user&lt;BR /&gt;$! p1 parameter for user&lt;BR /&gt;$ show user 'p1' ! this substitues the first param passed to myshowuser.com&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;This example is not very useful, since it adds no functionality, but it is just to demonstate a point.&lt;BR /&gt;&lt;BR /&gt;Now the two following commands will do the&lt;BR /&gt;same thing:&lt;BR /&gt;&lt;BR /&gt;$ @myshowuser system&lt;BR /&gt;$ show user system&lt;BR /&gt;&lt;BR /&gt;However, you suggest that you really are referring to something the program is prompting the user for.&lt;BR /&gt;&lt;BR /&gt;As Jan van den Ende stated, you can create an "answer file" that will be used as answers to the prompts the program generates.&lt;BR /&gt;&lt;BR /&gt;However, be aware that it the questions can change based on the previous answers given, then that method will not work in the general case.  It is essentially like running the program and then typing in all the answers into the typeahead buffer.&lt;BR /&gt;&lt;BR /&gt;An example of what won't work:  Suppose xx.exe asks for a quantity, and someone enters "j45".  If the program was written with the expectation that there was a person entering the data, the appropriate action is to tell the user that "j45" isn't an acceptable answer for a quantity, and to reprompt the user for the correct answer.&lt;BR /&gt;&lt;BR /&gt;If you are running from batch, you will need to make sure what is provided in the answer file is valid so that will not occur.&lt;BR /&gt;&lt;BR /&gt;A harder problem is a program that asks different questions based on previous answers.  If you can't predict the questions, you can't predict the correct response.&lt;BR /&gt;&lt;BR /&gt;Is the mc$img:xx.exe a program written by someone in your company that you have the source code for?  If so the program can be written in a way that it will accept command line parameters, which in general are much easier to deal with from DCL.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2008 15:09:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129596#M91112</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-09-12T15:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129597#M91113</link>
      <description>Jess wrote&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;Jan mis-spoke.  Do NOT use:&lt;BR /&gt;$ define/user SYS$INPUT SYS$COMMAND&lt;BR /&gt;in a batch file.&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Jeah.&lt;BR /&gt;My first answer was perhaps written a little bit too hastily. I SAW the "automate", but overlooked the "in a batch job".&lt;BR /&gt;&lt;BR /&gt;That definition applies when input is expected from the input stream, but is to be redirected to be taken from the highest level control device (which interactively is the terminal, and in batch is the primary command file)&lt;BR /&gt;&lt;BR /&gt;So sorry, it will not happen again (until next time)&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2008 17:09:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129597#M91113</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2008-09-12T17:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129598#M91114</link>
      <description>You have to do it via an intermediate script:&lt;BR /&gt;&lt;BR /&gt;$ open/write temp temp.com&lt;BR /&gt;$ write temp "$ RUN myProgram"&lt;BR /&gt;$ write temp "param_1_value"&lt;BR /&gt;$ write temp "param_n_value"&lt;BR /&gt;$ close temp&lt;BR /&gt;$ @temp&lt;BR /&gt;$ delete temp.com;&lt;BR /&gt;&lt;BR /&gt;/Guenther</description>
      <pubDate>Fri, 12 Sep 2008 20:54:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129598#M91114</guid>
      <dc:creator>GuentherF</dc:creator>
      <dc:date>2008-09-12T20:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129599#M91115</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Also on offer: lib$get_foreign, and creating your own CLD file / DCL verbs.&lt;BR /&gt;&lt;BR /&gt;Cheers Richard Maher</description>
      <pubDate>Fri, 12 Sep 2008 21:36:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129599#M91115</guid>
      <dc:creator>Richard J Maher</dc:creator>
      <dc:date>2008-09-12T21:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129600#M91116</link>
      <description>Depending how the program gets its parameters, it could be useful to define a 'foreighn command' to start the executable and pass parameters in the same line:&lt;BR /&gt;&lt;BR /&gt;$ xx :== run mc$img:xx.exe&lt;BR /&gt;$ xx p1 p2 p3&lt;BR /&gt;&lt;BR /&gt;When the parameters are derived from some system data or parameters passed to the procedure, these will be substituted provided you used the right syntax:&lt;BR /&gt;&lt;BR /&gt;$ xx 'p1' 'p2' 'p3'&lt;BR /&gt;&lt;BR /&gt;(if neither of these contain spaces, or lower case text that needs to be preserved lowercase. Otherwise encluse such a parameter in double quotes like this:&lt;BR /&gt;&lt;BR /&gt;$ xx "''p1'" 'p2' 'p3'&lt;BR /&gt;&lt;BR /&gt;if p1 is such a parameter)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2008 05:35:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129600#M91116</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2008-09-15T05:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129601#M91117</link>
      <description>Re Willem:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;$ xx :== run mc$img:xx.exe &lt;BR /&gt;$ xx p1 p2 p3 &lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;That will NOT work!&lt;BR /&gt;You will have to invoke MCR for this&lt;BR /&gt;&lt;BR /&gt;$ xx :== MCR mc$img:xx&lt;BR /&gt;&lt;BR /&gt;(or, the alternate syntax for the same)&lt;BR /&gt;&lt;BR /&gt;$ xx :== $mc$img:xx&lt;BR /&gt;&lt;BR /&gt;But mind, for this to function the xx source code must have command line handling, in a way that Richard Maher describes.&lt;BR /&gt;Which may well be the case, so it IS worth the try!&lt;BR /&gt;&lt;BR /&gt;hth&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>Mon, 15 Sep 2008 06:25:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129601#M91117</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2008-09-15T06:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129602#M91118</link>
      <description>If the source code of the executable u have , can be edited, the robust method for getting the parametrs into it may be;&lt;BR /&gt;&lt;BR /&gt;1. in dcl create a named file in the native directory of the executable.&lt;BR /&gt;2. write the parameters to the named file, may be a nn.txt or nn.dat file.&lt;BR /&gt;this could be thru a script, which asks for the parametrs using "dcl == inquire statement" &lt;BR /&gt;3. in the excutable read the named file nn.dat as the input parameter source, (include some parameter validation)&lt;BR /&gt;4. when the executable exits, ensure tht u delete the nn.dat file., else u will create&lt;BR /&gt;m versions of the file created for each run.&lt;BR /&gt;&lt;BR /&gt;if u can give more details about the way ur  executable ingests the params, it would help.</description>
      <pubDate>Tue, 16 Sep 2008 03:34:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129602#M91118</guid>
      <dc:creator>debu_17</dc:creator>
      <dc:date>2008-09-16T03:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129603#M91119</link>
      <description>RE:debu_17's recommendation of creating a parameter file.&lt;BR /&gt;&lt;BR /&gt;I don't see any significant advantage to this over the creation of a temporary command file as has already been suggested.&lt;BR /&gt;&lt;BR /&gt;Another issue is that as described, it seems that the executable will be looking for a fixed file name to be created in the directory that the executable exists in?  Fixed file names cause problems with concurrent use.  It would be better to just use a name like "PARAM_FILE" and have the command file define param_file with the file specification of the specific instance.  And I would definitely not put the parameter file in a shared directory with world write access.&lt;BR /&gt;&lt;BR /&gt;If you are going to modify the program, use lib$get_foreign, the CLI$ routines or if written in c, the argc, argv constructs to allow the parameters to be passed on the command line.  This has many advantages over temporary files.  It makes it much easier to pass information in, since DCL symbol substitution will work, you don't have to worry about temporary file name collision (so concurrency is no problem), file cleanup, protection, etc. etc.&lt;BR /&gt;&lt;BR /&gt;And use "read/prompt" instead of "inquire" when prompting for input from DCL.  In my opinion, the DCL INQUIRE command should never be used.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Sep 2008 04:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129603#M91119</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-09-16T04:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129604#M91120</link>
      <description>The generated temp command or output file as outlined is probably the way to go.&lt;BR /&gt;&lt;BR /&gt;But sometime feeding new commands in a pipe is a nice way to go, using SPAWN perhaps.&lt;BR /&gt;Or PERL.&lt;BR /&gt;&lt;BR /&gt;Here is a silly example&lt;BR /&gt;&lt;BR /&gt;------------ test.pl ----------&lt;BR /&gt;@disks = reverse sort grep /:/, qx(show device dk);   # Just a silly way to get lines with devices&lt;BR /&gt;&lt;BR /&gt;$cmd = "dfu";  # just an example&lt;BR /&gt;&lt;BR /&gt;open CMD,"|$cmd" or die "Could not open pipe into $cmd\n$!";&lt;BR /&gt;for (@disks) {&lt;BR /&gt;  $disk = (split)[0];  # grab the disk name from the line&lt;BR /&gt;  print CMD "report $disk\n"; # feed into command.&lt;BR /&gt;  sleep 5; # wait a while.&lt;BR /&gt;}&lt;BR /&gt;--------------------------&lt;BR /&gt;&lt;BR /&gt;So the example just picks one line from a list of devices and feeds it into a DFU program once every 5 second.&lt;BR /&gt;&lt;BR /&gt;But it could just as easily feed multiple lines, dynamically created from file or directory  contents in a reporting tools every hour.&lt;BR /&gt;&lt;BR /&gt;Of course such approach would keep a process alive, waiting for input.&lt;BR /&gt;A self-re-sumbitting batch job uses no resources while waiting.&lt;BR /&gt;&lt;BR /&gt;Both methods have their uses.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Sep 2008 05:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129604#M91120</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-09-16T05:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: VMS - How to pass parameters to to an executable through DCL script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129605#M91121</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Thu, 18 Sep 2008 10:02:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-how-to-pass-parameters-to-to-an-executable-through-dcl/m-p/5129605#M91121</guid>
      <dc:creator>Sk Noorul  Hassan</dc:creator>
      <dc:date>2008-09-18T10:02:03Z</dc:date>
    </item>
  </channel>
</rss>

