I have scenarios like where I do not have select access on to the whole table or table's to one of my Source DB, the only way I could get access required columns and bring the data into the Pentaho layer is by stored procedure.
Below is the sample stored procedure I wrote, I could get the result set in DB after doing EXEC ABC_KLM_LOAD
but not sure how to call this stored procedure into Pentaho Data Integration to continue further validations via steps in PDI
USE PDI_TEST
GO
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
CREATE OR ALTER PROCEDURE ABC_KLM_LOAD
AS
BEGIN
SELECT *
FROM [ XYZ_01]
END
GO