What is $mpjret? Where it is used in ab-initio?

Answers were Sorted based on User's Feedback



What is $mpjret? Where it is used in ab-initio?..

Answer / ananya

$mpjret is the graph execution status return value.
It can be used in end script of a graph.
Ideally the value of $mpjret should be 0(zero).

Is This Answer Correct ?    14 Yes 0 No

What is $mpjret? Where it is used in ab-initio?..

Answer / anne

$mpjret is a variable declared in the end script which
returns the value of the execution of the graph.

Its very simalr to the $? in unix

the above command returns the value 0 ot 1
0-success
1-failure

Is This Answer Correct ?    5 Yes 0 No

What is $mpjret? Where it is used in ab-initio?..

Answer / pkr

we can use $mpjret in end script like this:

if 0-eq($mpjret)
then
echo"success"
else
mailx-s"(graphname)failed" mailid.

Is This Answer Correct ?    1 Yes 0 No

What is $mpjret? Where it is used in ab-initio?..

Answer / avijit

$mpjret only works if you want to use it in the graph end script .
But if we want the return status in case we are running the graph from the back end it will not work.

If you are writing Unix shell script then use:

air sanbox run graph.mp
if [ $? –eq 0 ]; then
echo "Graph Failed"

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Ab Initio Interview Questions

Can any body give me the clear explanation about how to separate header,trailer and body records in Ab Initio?

2 Answers   TCS, Wipro,


How do you add default rules in transformer?

0 Answers  


What is the difference between a utility and api in a RUN SQL component

1 Answers   Accenture,


explain the environment varaibles with example?

0 Answers  


How you can test a dbc file ?

1 Answers   TCL,






Can you read multiple input files using one input file component ? (Same DML) How to use in abinitio graph?

3 Answers   IBM, TCL,


Difference between public and private projects and how to make private to public?

1 Answers  


What are the differences between informatica and abinitio?

0 Answers  


What are differences between different versions of co-op?

0 Answers  


How co>operating system integrates with legacy codes?

0 Answers  


. How can you get all the fields form a lookup files ? (Which function)

3 Answers   TCL,


Can you use scan to generate sequence number ? How to use in abinitio graph?

2 Answers   IBM, TCL,


Categories