Hello all,
Does anyone know how I can check for an error that originates in an SQL Procedure? I'd like to check for a bad return or error code. Here is a sample of the query:
create table myown_data as
select * from connection to db2
( select distinct
a.CUST_ACCT
,a.PCT_RT
,a.CONT_DT
,a.MAT_DT
,a.FIN_MAT_DT
,a.LOAN_TYPE
,a.ORG_RT
from heids.he_account a
,heids.he_account_msr b
where a.cust_acct_id = b.cust_acct_id
and b.mnth_dte = &prior_mnth1
and a.PORT_CD = 'ABC'
order by a.cust_acct
for fetch only
);
Any help/suggestions would be appreciated.
Thanks,
Mark
Does anyone know how I can check for an error that originates in an SQL Procedure? I'd like to check for a bad return or error code. Here is a sample of the query:
create table myown_data as
select * from connection to db2
( select distinct
a.CUST_ACCT
,a.PCT_RT
,a.CONT_DT
,a.MAT_DT
,a.FIN_MAT_DT
,a.LOAN_TYPE
,a.ORG_RT
from heids.he_account a
,heids.he_account_msr b
where a.cust_acct_id = b.cust_acct_id
and b.mnth_dte = &prior_mnth1
and a.PORT_CD = 'ABC'
order by a.cust_acct
for fetch only
);
Any help/suggestions would be appreciated.
Thanks,
Mark