|
I am not sure if you can do this with RUNQRY. But QMQRY allows this and it works beautifully. We use it for many quick and dirty reports. It will even prompt for variable values interactively if you want, although the interface is not very user friendly. But in batch you can pass replacement variable values very nicely. See the CRTQMQRY and STRQMQRY command helps for more information. -----Original Message----- From: Uttam H Naidu [mailto:UTTAMHN@india.mastech.com] Sent: Monday, December 21, 1998 8:38 PM To: 'MIDRANGE-L@midrange.com' Subject: Passing Parameters to Query Hi All, I have a funny feeling. Can we pass any parameters to the RUNQRY <filename> in a CL program. Eg. I have built a query using WRKQRY and in the select records I have to mention Deptno = :Wsdptno where WSDPTNO can be a user defined variable Any suggestions with an example will help me more... Regards, Uttam H. Naidu, Systems Analyst, Mascot Systems Pvt. Ltd., Bangalore (INDIA) +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.