title: & becomes &amp; during FTP to MVS
body: <p>I am using a java library (edtftpj) to FTP a file from a web app hosted of a tomcat server to an MVS system.</p>
  
  <p>The FTP transfer mode is ASCII and transfer is done using FTP streams. The data from a String variable is stored into an MVS dataset. </p>
  
  <p>The problem is all the ampersand characters get converted to <code>&amp;amp;</code> . I have tried various escape characters including \&amp; , ^&amp; and X'50' (hex value), but none of it helped.</p>
  
  <p>Anyone has any idea how to escape the ampersands please?</p>