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

What is the use of the co> operating system in ab initio?

0 Answers  


Hi friends, I have 100 records in my input file, if i run first,the first 10 records are stored into the output and if i run second time next 10 records stored into the output file like that please let me know the answer Thanks, krishna

5 Answers   CTS,


What is the difference between reformat and redefine format?

4 Answers   IBM, TCS,


How to find the project(pub,priv,common,client) in between public, Private,common?Any identification?

0 Answers  


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

0 Answers  






What do you mean by the overflow errors?

0 Answers  


After completion of graph what is the next process to perform? who will perform the later process?

1 Answers  


What is difference between force_error & force_abort? How to use in abinitio graph?

2 Answers   IBM, TCL,


What is the purpose of having stored procedures in a data-based?

0 Answers  


can any one help me now i am learning AB Inito but i don't have material and pdf's can any one provide pdf's to this mail id mohanraju0113@gmail.com thanks in advance...................................

0 Answers  


I am unable to connect sever database(oracle) from gde(db config file) local system.i set all these?

0 Answers  


How to get DML using Utilities in UNIX?

1 Answers  


Categories