Following are some example SELECT statements that query a WRKDG outfile and produce various outfile reports. The first three examples show how to use wild cards to produce reports about specific data groups in the outfile.
The last example adds a few field definitions, in request time sequence, to produce outfile reports with additional data group related information.
These are basic examples, there may be additional formatting options that you may want to apply to your output.