Under "select output type and form" is the option "Print definition" if you set this on Y then you will get a print of the query definition. You can also specify this on the RUNQRY command - PRTDFN(*YES).
This will show the record selections, but unfortunately prints the rest of the query definition as well.
Thanks Martin....but what I am trying to accomplish is to take the date range keyed by user in record selection and have them print in the output headings.
The print query definition will show what the user has keyed in, but it prints a lot of other things which you probably don't want. I don't think there's any other way of showing the keyed in selection from query. You may be able to do this using QM query's, but that's something I'm not sure of.
Last Wiki Answer Submitted: March 13, 2009 10:01 am by Bplocki35 pts.