PreviousNext
Help > Easycom .NET > Easycom namespace > EacXML > Example 2
Example 2

 

Into this example, we use a PCML description, passed as string parameter of the  XmlDefine method:

 

EacXML myEacXML = new EacXML(ConnectionIBM);

          

myEacXML.XmlDefine("PCML", " <pcml version =\"4.0\"><program name=\"QXXRTVDA\" path=\"/QSYS.lib/QXXRTVDA.pgm\"><data name=\"DTANAME\" type=\"char\" length=\"20\" usage=\"input\" /><data name=\"OFFSET\" type=\"int\" usage=\"input\" length=\"4\" /><data name=\"DATALEN\" type=\"int\" usage=\"input\" length=\"4\" /><data name=\"RESULT\" type=\"int\" length=\"4\" usage=\"output\" /></program></pcml>");

           

 myEacXML.XmlCallProgram("QXXRTVDA", "<DTANAME>CFGEAC    *LIBL     </DTANAME><OFFSET>29</OFFSET><DATALEN>4</DATALEN>");