Using INCUDE statement, we can include source to the stored procedure. In this example, we are going to insert C source code which contains the API Qp0zLprintf. Create stored procedure MYPRINTF like below : cl:addlible qsysinc; create or replace procedure mylib.myprintf(printString varchar(500)) set option bindopt = ‘bndsrvpgm(qsys/qp0zcpa)’ begin if printString is not null then include […]