× 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: Updating Database files with a CL program
  • From: JohnHester@xxxxxxxxx
  • Date: 25 Sep 98 09:56:59 EDT

You can also use RUNSQLSTM from a cl program.
---------- Original Text ----------

From: C=US/A=INTERNET/DDA=ID/MIDRANGE-L(a)midrange.com, on 25/09/98 14:41:

On Thursday, September 24, 1998 11:54 PM, David Gibbs 
[SMTP:david@midrange.com] wrote:
> At 10:28 PM 9/24/98 , Don wrote:
> >You can use Cl to read a PF then why not turn around and have SQL (you
> >already have the engine on your system as base code) do the updates??
>
> Unforuatenly, you cannot access SQL from CL directly... you still need a
> HLL langauge.

Well.... you can access SQL from CL programs through the intermediate step 
of QMQRY.  Create a QMQRY source that looks like UPDATE FILEX SET 
FIELDY='NEW VALUE' WHERE FIELDZ=&FIELDZ  Compile it and in your CL program 
do a STRQMQRY ... SETVAR((FIELDZ 'ABC'))  This'll change FIELDY for each 
record where FIELDZ is equal to ABC.  Many other cool things are possible 
with this technique!

Buck Calabro
Commsoft, Albany, NY
mailto:mcalabro@commsoft.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 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.