title: Can I change as400 data area with c#
body: <p>I have been asked if I can turn a java program into c#.</p>
  
  <p>In the java program it reads and edits the data area</p>
  
  <pre><code>//get the value for the sysavail dtaara
  String dtaara_path = "/QSYS.LIB/QGPL.LIB/SYSAVAIL.DTAARA";
  QSYSObjectPathName path = new QSYSObjectPathName(dtaara_path);
  CharacterDataArea dataArea = new CharacterDataArea(as400, path.getPath());
  
  String setDataArea;
  
  setDataArea = dataArea.read();
  
  //if system available run
  if(setDataArea.contains("Y")) {
      dataArea.write("IMAGE LOAD  ");
      //other stuff
  }
  </code></pre>
  
  <p>I've used the IBM.Data.DB2.iSeries to call programs but never to write to a data area. How can I write and read the data area using the IBM.Data.DB2.iSeries?</p>