Bonjour.
Utilise plutôt SQL et tu as toute la doc ici http://http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp
cherche RPG SQL et tu trouveras ce qu'il te faut.