Code: Select all
/*********************************************************************/
/* Description.. This program performs the following function: */
/* 1) Retrieves a value from a data area */
/* Program name. RTVDADTA */
/* Authored by.. Linoma Software */
/* Date/time.... 06/17/10 */
/* */
/*********************************************************************/
PGM PARM(&value)
DCL VAR(&VALUE) TYPE(*CHAR) LEN(25)
/* get the data from the data area */
RTVDTAARA DTAARA(DJOHNSON/DAVALUE) RTNVAR(&VALUE)
/* we're done now */
@ENDPGM:
ENDPGM
Code: Select all
<project name="Retrieve value from DataArea" mainModule="Main" version="1.0">
<module name="Main">
<exec400 version="1.0" resourceId="Dev61">
<program name="rtvdadta" library="djohnson">
<parameter dataType="text" length="25" usage="out" outputVariable="value" />
</program>
</exec400>
<print version="1.0">
<![CDATA[the value in the data area was "${value}"]]>
</print>
</module>
</project>