Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community, getting crazy. This have worked earlier.
Got this first to get the highest nuber from a time field in database:
Load
NUM(MAXTID) as MAXTID;
SELECT max(R2PTIM) as MAXTID from TABLE where R2CMP = '222' and R2PDAT >= current_date;
LET VLastUp = MAXTID;
Load
NUM(MAXTID) as MAXTID;
SELECT max(R2PTIM) as MAXTID from CLICFILPRD.RKNRP200 where R2CMP = '222' and R2PDAT >= current_date;
LET VLastUp = MAXTID; in variable
Then i want to use this VLastUp in the next SQL in script:
SELECT * from Table where R2CMP = '222' and R2PDAT >= current_date and R2PTIM > '$(VLastUp)';
Just want to store the highest time in Variable, then nest reolad, just show me the post with higher time than the last time and so on
Br
John
Can't get this to work.
R2PTIM is time in DB i think, like this 105 811