can we invoke bteq script from mload script

Tools & Utilities
Enthusiast

can we invoke bteq script from mload script

I need to run a bteq/stored procedure script from a a mload script..I know i can use the .SYSTEM command to run a os command..

My Requirement :

Actually Mload application error table is creating problem for us. I am using mload script to load data. If the error table is created by mload with any reason such duplicate rows, etc..And when the job runs next time it fails the job because of the existance of this error table.

Please let me know can we force mload script to check the existance of Application error table in the same script and signal a message or something like that. I think it checks in the next run whether there is any Application error table exists or not.

I deeply appreciate your assistance.