Difference between Force_error & Force_abort?

Answers were Sorted based on User's Feedback



Difference between Force_error & Force_abort?..

Answer / keerthika

force_error can be written by the developer to exit by throwing an user specified error.
Eg : if (age<18) force_error("Age not suitable for Voting")

in above case the graph fails with Exit 3 along with error message in error log file saying - Age not suitable for Voting

Whereas , force_abort just fails the graph without any message even this with return code exit 3 for failure

Is This Answer Correct ?    4 Yes 0 No

Difference between Force_error & Force_abort?..

Answer / raju mortale

force_error() function it will not abort graph execution it will send error msg to error port if condition is true.

ex- if(in.gender=="Female") force_error("Gender is Female.!")

but in case of
force_abort() function it will abort graph execution with error msg, if condition is true.


ex- if(in.gender=="Female") force_abort("Gender is Female.!")

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Ab Initio Interview Questions

What is $mpjret?

0 Answers  


what is the syntax of m_dump command?

3 Answers  


Have you worked with packages?

0 Answers  


Can anyone give me an example of realtime start script in the graph?

0 Answers  


When we should use 'jobid' for commit table (Output table component?? How to use in abinitio graph?

0 Answers   IBM, TCL,






Can you run air sandbox run using pset ?

2 Answers  


Define ramp limit in ab initio?

0 Answers  


what is macro?At what situation we have to face?

1 Answers  


Can sorting and storing be done through single software or you need different for these approaches?

0 Answers  


Explain the methods to improve the performance of a graph?

1 Answers  


What are the differences between different versions of co-op?

0 Answers  


what is deeup in unique only?

5 Answers   IBM,


Categories