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.
Last Wiki Answer Submitted: January 18, 2012 3:50 pm by CharlieBrowne32,785 pts.
All Answer Wiki Contributors: CharlieBrowne32,785 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Review the Query reference manual for the use of ‘dependent values’. Since you need to have the Query for i product in order to have the current reference manual, and I don’t have the product, you’ll have to tell me how to do it. (You do have the manual, right?)
But ‘dependent values’ were intended to be used in queries for the Office Vision product which is no longer available. In order to use those queries, you have to execute them with Query Manager. You execute them the same way you would execute a normal QM query with parameters — with the STRQMQRY command.
And since it’s easier to create QM queries that accept parameters than to create Query for i queries (and you can create QM queries without licensing an additional product that is less capable and harder to use than QM), and QM queries can be created on more systems than Query for i queries, why would you ever use Query for i?
BTW, if you want to use a Query for i query with parameters, you can’t use the RUNQRY RCDSLT() parameter.
i think, just use WRKQRY to make report, after run your query….
Review the Query reference manual for the use of ‘dependent values’. Since you need to have the Query for i product in order to have the current reference manual, and I don’t have the product, you’ll have to tell me how to do it. (You do have the manual, right?)
But ‘dependent values’ were intended to be used in queries for the Office Vision product which is no longer available. In order to use those queries, you have to execute them with Query Manager. You execute them the same way you would execute a normal QM query with parameters — with the STRQMQRY command.
And since it’s easier to create QM queries that accept parameters than to create Query for i queries (and you can create QM queries without licensing an additional product that is less capable and harder to use than QM), and QM queries can be created on more systems than Query for i queries, why would you ever use Query for i?
BTW, if you want to use a Query for i query with parameters, you can’t use the RUNQRY RCDSLT() parameter.
Tom