×
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.
Doesn't anyone have a reason why host variables are not allowed in the
SQLRPGLE program when trying to build a qtemp table with data.
CREATE TABLE QTEMP/HTOPERIODS AS (
WITH cte as (
SELECT DISTINCT HTOER, HTOPER
FROM HRCSTFA/CUPHTO
WHERE HTOER = :COMPANY <<--- not permitted
AND HTOPER <= :PERIOD <<--- not permitted
Order by HTOER, htoper DESC)
SELECT a.*, row_number()
OVER(PARTITION BY HTOER ORDER BY HTOPER DESC) ROWNBR
FROM cte a
ORDER BY HTOER, HTOPER DESC) WITH DATA;
Haven't been able to find a reason, but I might not have the right search
term.
--
Michael Schutte
Admin Professional
BIG FARM SALADS: Made when you're ready, not ready made.
Try our NEW Savor-Size Country Caesar Salad for 5.99!
For more information, visit BobEvans.com
As an Amazon Associate we earn from qualifying purchases.
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.