With the standard AS400 Query product you can
RUNQRY *N yourlib/yourfile RCDSLT(*YES)
This will bring up the rcdslt propmt screen.
If you want to pass a parm you need to use Query Manager
I have solved this problem by using the STRQMQRY command and the SETVAR parameter.
REGISTER or login: