title: how to run a c program with reading command line parameters in openvms?
body: <p>I built a simple program try to print the command line parameters.</p>
  
  <p>The code is below and I built an executable file (TEST.EXE).</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      int i;
      printf("%s\n",argv[0]);
      for (i = 1;  i &lt; argc;  i++)
         printf("argument %d: %s\n", i, argv[i]);
      exit (EXIT_SUCCESS);
  }
  </code></pre>
  
  <p>I try to run the TEST.EXE and print the parameters but fail.</p>
  
  <p>The result of command <code>RUN TEST.EXE test1 test2</code>:</p>
  
  <pre><code>%DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters
  </code></pre>
  
  <p>What can I do to print "test1" and "test2"?</p>