|
I am uncertain as to whether this will provide the specific info you require, but it may point you in the right direction. If you use RTVQMQRY and output to file, you will be able to access the query definition. I use a CL PGM which references a file listing all the queries I want to reference (DSPOBJD to Outfile) and then read through this file using the query name each time with RTVQMQRY. This will create a new member in a source file (which you need to create first) for each query definition. I then call an RPG Pgm to test each line of the member. The Rpg is set to look for file names in a certain position. I hope that this is of some use. > ---------- > From: Amitava Banerjee[SMTP:Amitava.Banerjee@trin.net] > Reply To: rpg400-l@midrange.com > Sent: 08 October 2001 18:12 > To: rpg400-l@midrange.com > Subject: How can I retrieve theinformation about a Query from a CL? > > How can I retrieve the information about a Query (such as OUTPUT type, > Page width and Length of the report if the Output is Report) from a CL? > Thank you > Amitava > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > or email: RPG400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.