× 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: RPG IV and CF-spec OR CL II
  • From: Rob Berendt <rob@xxxxxxxxx>
  • Date: Tue, 3 Aug 1999 8:15:12 -0500

Sample SQL, straight from the SQL programmers manual:
4100 C/EXEC SQL 
4200 C+ UPDATE CORPDATA/EMPLOYEE 
4300 C+ SET SALARY = SALARY * :PERCNT 
4400 C+ WHERE COMM >= :COMMI 
4500 C/END-EXEC 

The variables that are preceeded with the colons are host variables.

So perhaps some similar method could be used with CL.  However I opt 
for the ampersand versus the colon.  I think the commands may require this.





thatzenbeler@clinitech.net on 08/02/99 01:37:19 PM
Please respond to RPG400-L@midrange.com@Internet
To:     RPG400-L@midrange.com@Internet
cc:      
Fax to: 
Subject:        RE: RPG IV and CF-spec OR CL II

I have never used the SQL directives before, can you use run time variables
in the directives?  Or are they considered constants when you compile the
program?

Tim 

> -----Original Message-----
> From: MADWALTER@aol.com [SMTP:MADWALTER@aol.com]
> Sent: Monday, August 02, 1999 9:43 AM
> To:   RPG400-L@midrange.com
> Subject:      Re: RPG IV and CF-spec OR CL II
> 
> Howabout a compiler directive like /SQL... Something like 
>       C/CLEXEC OVRPRTF 
>       C+  FILE(Qsysprt) HOLD(*YES)
>       C/ENDCLEXEC




+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---END



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.