I have been asked if I can turn a java program into c#.
In the java program it reads and edits the data area
//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
}
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?