Include tag is used to include and execute XML Easycom requests from an external XML stream file stored in the IFS.
Include tag can be expanded with the following elements.
<include file="IFS Path to XML file" />
Attribute |
Value |
Description |
File= |
IFS Path |
Path to an XML file containing XML Easycom directives to execute.
|
Example
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Easycom>
<include file="/AppData/Web/App_Defines.xml" />
</Easycom>
In this example, "App_Defines.xml" stream file contains:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Easycom>
<system IGNMSG="CPF2103" Command="addlible PCXML"/>
<bind>
<file type="*SRVPGM" name="RPGPRC01"/>
</bind>
<define>
<file type="RPG" pf-src="CVTNW_H"/>
<file type="PCML" stmf="/tmp/sr/CUST_DIM.pcml" />
<S-RPG>
DS_CUST E DS extname(SP_CUST:RSP_CUST);
PSPCUST PR;
Result LIKEDS(DS_CUST);
TERM1 5S 0;
</S-RPG>
</define>
</Easycom>