return code from db2 store procedure

Discussion created by IT_Admin_Unix_1114 on Aug 26, 2016
Latest reply on Sep 7, 2016 by IT_Admin_Unix_1114

Hi guys,
I'm new about Automic Workload so I would submit my problem.
I should submit a DB2 store procedure using Automic agent for db2.
This works fine but I'm not able to catch any return code from store, so
if its value is greater than 0 the task aborts

The definition used in UC4 is as follow:
set PATH=abc;
set SCHEMA=abc;
call mystoreDB2();

Can I ask to you any sample (code or definitions... any stuff) about to try in my environment?
Any ideas will be appreciated. Thx