× 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.



Don't take this the wrong way, but these issues have been beat to death
on the list recently.  My answers will be short, but check out the
archives and you should find plenty on both of these topics.

Read on...

On Mon, 2003-08-11 at 22:26, Pascal Bellerose wrote:
> Hi,
> 
> Is there another way of embedding SQL statements in free-format RPG than
> using the c specs?

No.

 /free
    someField = someValue ;
 /end-free
c/Exec SQL
c+  Select * from myFile
c+    into :myDS
/end-exec
 /free
   //etc, etc
 /end-free

> Another thing is that a %DATE function that retunrs numeral would be great
> instead of bringing back the c specs for a MOVE.  I really hate it to use
> two coding styles in the same program.

If you are on V5R1 you can download my free library at
http://www.rpgnext.com and use the "dateAsInteger()" procedure.  Check
out the procedure docs at http://www.rpgnext.com/docs/procedures.php.
Certainly not the only way but the work is already done for you, not to
mention it has lots of other goodies as well.

Joel
http://www.rpgnext.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.