You need to define your data area in your program and retrieve the data from it directly, you don’t need to use the PLIST or PARM statements.
Here’s a link on how to define and use data areas in RPGLE.
That’s right Data Areas are accessible to all programs, therefore you don’t have to pass them as a parameter. You just have to define in your Data Specification and access it with the operation code IN. Formerly the definition was done through an operation code <b>DEFINE</b> and <b>*DTAARA</b> keyword in factor one.
<pre>* The result field entry (TOTNET) is the name of the data area to
* be used within the ILE RPG program. The factor 2 entry (TOTAL)
* is the name of the data area as defined to the system.
C *DTAARA DEFINE TOTAL TOTNET</pre>