Fail job during ExecTCL failures.

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sspreethi
Participant
Posts: 25
Joined: Mon Dec 01, 2003 2:27 am

Fail job during ExecTCL failures.

Post by sspreethi »

Hi,

We are executing SQL procedures using Before-Job subroutine - ExecTCL.(This approach was suggested by IBM as our procedures did'nt run as expected from before/after sql in Dynamic RDBMS stage. We have created VOC entry & are using Exec TCL)

If Exec TCL fails, it gives an error in log but doesnt abort the job.
**********************************************************
[DataDirect][ODBC SQL Server Driver][SQL Server]EXECUTE permission denied on object 'usp_GetLastBusinessDate', database 'PowerAgentCommon', owner 'dbo'.
**********************************************************

We would like our jobs to abort in such scenarios. Is this possible?

Thanks,
Preethi.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Try setting the warning limit to 1.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
snt_ds
Premium Member
Premium Member
Posts: 280
Joined: Wed Oct 18, 2006 11:53 am
Location: Pune, India

Post by snt_ds »

Hi DSGuru, I faced similar issue today. There are 0 warnings in this job. The event type of below message is 'Info'. In such scenarios, I would want the job to abort. Is there a way to achieve this.
Post Reply