|
First the Caveat: I don't use MS products at all. Don't you have to connect to the 400 to use ODBC? And doesn't that connection start a job on the 400 that persists until you disconnect? And doesn't ODBC support a CALL interface (SQL CALL also known as stored procedures)? So can't you run something like? CALL QCMDEXC ("OVRDBF FILE(PERFDATA) TOFILE(PERFDATA) TOMBR(CURRENT)", X'000000005200000F') SELECT * FROM PERFDATA Or is the real problem that MS Query won't let you control the SQL statements so you don't get a chance to run the override? Regards, Simon Coulter. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» «» FlyByNight Software AS/400 Technical Specialists «» «» Eclipse the competition - run your business on an IBM AS/400. «» «» «» «» Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 «» «» Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au «» «» «» «» Windoze should not be open at Warp speed. «» «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» //--- forwarded letter ------------------------------------------------------- > X-Mailer: Microsoft Outlook Express 4.72.2106.4 > MIME-Version: 1.0 > Date: Wed, 17 Feb 99 14:42:51 -0600 > From: "Roger Pence" <rp@rogerpence.com> > To: MIDRANGE-L@midrange.com > Reply-To: MIDRANGE-L@midrange.com > Subject: Re: Selecting Specific Member in MSQuery > > John-- > > > I currently use Excel (with MS Query) to retrieve data from the /400 to > create performance graphs. I currently have a routine that copies the data > out to a work library so that I only have one member per performance data > file. Is there a better way? Is there a way so select a member within the > SQL that MS Query generates? > > You're outta luck here. ODBC drive SQL syntax doesn't support members. > Unless you're writing to the API set, you also can't do an override because > the override must be done within the same job as the SQL calls. Logical > files are pretty much your best alternative. > > The only ODBC driver I've seen that supported members was ShowCase's ODBC > driver and they have long since pulled it from shrinkwrapped distribution > (dumb, huh?). > > rp > > > > > +--- > | 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.