title: How to make SFTP cozbatch return different error codes
body: <p>I need to get different SFTP exit codes for each error. For instance 'no such file or directory' --> exit code=552 or 550 instead of returning 1.
  I've tried the following and it did not work:</p>
  
  <pre><code>//A05FTP   EXEC PROC=SFTPROC,COND=(0,NE)                                
  //COPSFTP.MYSTDIN DD *                                                  
  host="xpto.xpty.xptz"                                              
  lzopts mode=text        
  cd /home/apl/files/unl                         
  ls                                                                      
  a=`ls | wc -l`                                                         
  echo `$a`                                                                
  echo $?                                                                 
  QUIT                                                                    
  //*     
  </code></pre>
  
  <p>and the output in spool is:</p>
  
  <pre><code> cozsftp&gt; lzopts mode=text                          
   mode=text                                         
   cozsftp&gt; lzopts mode=text                          
   mode=text                                         
   cozsftp&gt; cd /home/apl/files/unl      
   Ý09.807¨ Invalid command.                          
   cozsftp&gt; a=      1                                 
   CoZBatchÝI¨: returning      rc=exitcode=1                                                                         
  </code></pre>
  
  <p>Can anyone help me?</p>