title: Can not execute CL Command (AS400 command) in PHP script
body: <p>I login to AS400 and go to QSHELL(STRQSH). After that I pasted the following command and run it in QSHELL</p>
  
  <pre><code>system "IVIEW/PRTDISTL APPNAME(MYJOBLOG) STMF(TEST_89.PDF) HOLD(*NO)"
  </code></pre>
  
  <p>It works. But when I execute the above command using PHP script as the follow</p>
  
  <pre><code>$cmd = "IVIEW/PRTDISTL APPNAME(MYJOBLOG) STMF(TEST_89.PDF) HOLD(*NO)";
  $cmd = 'system "' . $cmd . '"';
  
  $output = array();
  exec ($cmd, $output , $retVal);
  
  echo "return value code: " . $retVal;
  </code></pre>
  
  <p>It returns error code of 255. Please help me how to fix this issue. Thanks</p>