I want to pass variable from my program to a remote view.
public beg_dte_sql
beg_dte_sql = 37884
OPEN DATABASE l:\pur\dbC\por.dbc SHARED
USE POR!pur_por AGAIN IN 0
SELECT pur_por
The above remote view has the following code. As you can see, I have hard coded a value so that I don't get the whole world.
SELECT Pmppd.PDCO, Pmppd.PDPOID, Pmppd.PDSEQ, Pmppd.PDICDE, Pmppd.PDLDSC,;
Pmppd.PDUOM, Pmppd.PDVND, Pmppd.PDRSTS, Pmppd.PDCPU, Pmppr.PRRSTS,;
Pmppr.PRRCNO, Pmppr.PRHREC, Pmppr.PR8REC, Pmppr.PREREC, Pmppr.PRUOM,;
Pmppr.PRRCQT, Pmppr.PRRCAM, Pmppr.PRPKSL, Pmppr.PRBOLN, Pmppr.PRTRCN,;
Pmppr.PRCARD, Pmppr.PRCO;
FROM {oj PMPPD Pmppd LEFT OUTER JOIN PMDBFA.PMPPR Pmppr ;
ON Pmppd.PDSEQ = Pmppr.PRSEQ };
WHERE Pmppr.PRPOID = Pmppd.PDPOID;
AND (Pmppd.PDCO = ' 2';
AND Pmppr.PRHREC > 37884)
I want to replace the last statement with
Pmppr.PRHREC > beg_dte_sql.
I get an error.
SQL0206 - Column beg_dte_sql not in specified tables.
Is this possible?
public beg_dte_sql
beg_dte_sql = 37884
OPEN DATABASE l:\pur\dbC\por.dbc SHARED
USE POR!pur_por AGAIN IN 0
SELECT pur_por
The above remote view has the following code. As you can see, I have hard coded a value so that I don't get the whole world.
SELECT Pmppd.PDCO, Pmppd.PDPOID, Pmppd.PDSEQ, Pmppd.PDICDE, Pmppd.PDLDSC,;
Pmppd.PDUOM, Pmppd.PDVND, Pmppd.PDRSTS, Pmppd.PDCPU, Pmppr.PRRSTS,;
Pmppr.PRRCNO, Pmppr.PRHREC, Pmppr.PR8REC, Pmppr.PREREC, Pmppr.PRUOM,;
Pmppr.PRRCQT, Pmppr.PRRCAM, Pmppr.PRPKSL, Pmppr.PRBOLN, Pmppr.PRTRCN,;
Pmppr.PRCARD, Pmppr.PRCO;
FROM {oj PMPPD Pmppd LEFT OUTER JOIN PMDBFA.PMPPR Pmppr ;
ON Pmppd.PDSEQ = Pmppr.PRSEQ };
WHERE Pmppr.PRPOID = Pmppd.PDPOID;
AND (Pmppd.PDCO = ' 2';
AND Pmppr.PRHREC > 37884)
I want to replace the last statement with
Pmppr.PRHREC > beg_dte_sql.
I get an error.
SQL0206 - Column beg_dte_sql not in specified tables.
Is this possible?