There is also an API called QXXRTVDA. Why do you want to use something different to RTVDTAARA or IN?
we can use dataarea data structure to retrive data from a dataarea in our rpg program
There is also the <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/qwcrdtaa.htm”> Retrieve Data Area API QWCRDTAA</a>. This API is a bit more flexible in terms of the *DTAARA data type (though the referenced C run-time API does support access beyond *DTAARAs).