All,
I am having one DB2 query
SELECT year(current date)*10000 +
month(current date)*100 +
day(current date-1 days),count(*) FROM mstfile.
Above query gives me the result as 20200108 ,100 as output
I need to put this in one of the SQL RPGLE program where i am having the code like this
Str = 'Insert into TMPFILE +
SELECT year(current date)*10000 || +
month(current date)*100 || +
day(current date-1 days),count(*) FROM '+
file_name;
But when i am debugging the program it is not getting the output .
Kindly help me correcting the SQL RPGLE Script.
I am having one DB2 query
SELECT year(current date)*10000 +
month(current date)*100 +
day(current date-1 days),count(*) FROM mstfile.
Above query gives me the result as 20200108 ,100 as output
I need to put this in one of the SQL RPGLE program where i am having the code like this
Str = 'Insert into TMPFILE +
SELECT year(current date)*10000 || +
month(current date)*100 || +
day(current date-1 days),count(*) FROM '+
file_name;
But when i am debugging the program it is not getting the output .
Kindly help me correcting the SQL RPGLE Script.
Comment