I have a function that contains 'if'. 'for'. I want to create this function in Db2 (vesion 8) on mainframe. Please let me know the basic steps to do that. I have tried to execute it through SPOFY and QFM and got errors. It seems like there should be some specific way to create function in DB2 (V8) on mainframe (db2 z/os).
Please check the function below -
create function desc_func( v_rpt_id integer, v_desc_typ_cde...