Am I able to pass a declared variable to another report and if so what is the format? (reason for my asking is my logic is currently failing...).
I am attempting to pass a declared variable but the linked Procedure, after loading, gives error: Could not execute the report. There was an error in the report. Data too long for column 'vType' at row 1
Main Stored Procedure:
CREATE PROCEDURE sp_DBR_ICM
()
BEGIN
DECLARE vItype varchar(20);
IF vClass=99 THEN
SET vItype='REGRENT';
ELSE
SET vItype='REGSTOCK';
END IF;
select 'dbr.report', 'sp_DBR_IVNI','inline','vType=(vItype)';
And the linked procedure is :
CREATE PROCEDURE sp_DBR_IVNI
(vType varchar(20))
Malcolm C. HUB