CL Command Reference - ANZQRY

CL Command List > ANZQRY Reference

Description:

The Analyze Query (ANZQRY) command allows you to analyze a query definition (QRYDFN) object for query management conversion problems. Output from this command includes diagnostic messages about potential differences between Query/400 and query management use of query and form information derived from the analyzed QRYDFN object. A completion message shows the highest severity of potential problems found.


Examples:

Example 1: Displaying All Messages

ANZQRY QRY(QRY2)

This command analyzes the first QRYDFN named QRY2 in the user¡¯s library list. Messages about conversion problems, for example, text that is too long, are sent to the job log. The messages are displayed when the analysis has completed.


Example 2: Displaying Specific Messages

ANZQRY QRY(QRY2) SEV(99)

This command analyzes the first query named QRY2 in the user¡¯s library list. Only the completion message and messages diagnosing conditions which need to be investigated before a run is attempted are shown and logged.