Display Query for OS/400 SQL script

75 pts.
Tags:
OS/400
OS/400 Query
Query for OS/400
SQL scripts
Is it possible to view the SQL that is generated by a query created in Query for OS/400. I have the query defined as I want it and would now like to give the SQL script to my development team to use in automating reports by accessing the database directly.
ASKED: May 19, 2009  3:15 PM
UPDATED: May 19, 2009  3:54 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

You can use the RTVQMQRY command to retrieve the SQL statement to a source file – you’ll need to specify ALWQRYDFN(*YES).

Regards,

Martin Gilbert.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following