× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Passing parameters to a query
  • From: Rob Berendt <rob@xxxxxxxxx>
  • Date: Fri, 12 Jun 1998 9:26:11 -0500

I like Larry's idea on the file.  We use that here.  You CAN use the file in 
QTEMP in batch if you don't write the file until it is in batch.  Just pass 
what you want in the file as parameters to the batch program and then write the 
file.

Also on the Query management issue, I like this solution, perhaps it is because 
I had my article published in the March 1994 edition of News/400 using this.  
The only problem is the transition from Query to Query Management.  I document 
how to do that in the article.  However the main issue I have is getting the 
users to embrace Query Management.  They just love Query!  They adore Query!  
They upload files from their PC's to the 400 so they can run Query on it 
instead of PC based tools.

Larry's idea on the file, which we do use alot, gives you the most ease of 
maintenance.  Go for it.




lbolhui@ibm.net on 06/11/98 10:37:03 AM
Please respond to MIDRANGE-L@midrange.com@Internet
To:     MIDRANGE-L@midrange.com@Internet
cc:      
Subject:        Re: Passing parameters to a query

Damian,

> 
> Can someone show me or direct me on how to run a query through a CL
> that will prompt the user to enter values(selection) and use the
> entered values to complete the query.

  We have created small RPG program to prompt for the values required
and validate them as needed, then writes the selections to a one record
DB file.  The query is  written to link this file as the primary file so
you end up getting only records that match to it.

  Potential problems occur if the file gets changed by a second
submission of the query before the first one completes.  You cannot
place the file in QTEMP if you are running the query in Batch.  Second
problem is if you are already at max for number of files in the Query.

  Larry Bolhuis
  Arbor Solutions, Inc
  lbolhui@ibm.net
+---
| 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 thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.