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



Pascal Bellerose wrote:
Hi,

Is there another way of embedding SQL statements in free-format RPG than
using the c specs?

This has been discussed before, here and elsewhere. A search should turn up much of that.


We are aware of the need to improve the coding of SQL in /free calcs, and hopefully, relief should come in some future release. (Unfortunately, not the one currently under development.)

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.

Some relief should be available in the next release. %DATE will never be changed to return anything other than a date value. However, you should be able to go from date to numeric in one fewer step. Today, you would code:


numdate = %dec(%char(datevalue:*ISO0));

In the future, you'll be able to code something like:

numdate = %dec(datevalue:*ISO);

Cheers! Hans



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.