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 are Cartesian joins?

3 Answers  


what is the relation between EME , GDE and Co-operating system ?

4 Answers  


How to insert/update a csv file by comparing it with another csv file? for example, i have 2 input files : ColA ColB ColC 1 A AA 2 B AB 3 C CC and second one : ColA ColB ColC 2 B BB 4 D DC Job should compare these 2 files and update the records present in first input file. so the output file will look like this: ColA ColB ColC 1 A AA 2 B BB 3 C CC 4 D DC

0 Answers  


what is the difference between .dbc and .cfg file?

3 Answers   Cap Gemini,


What is the diff between abinitiorc and .abinitiorc files ?

1 Answers   IBM, Infosys, TCL,






Mention some ways for improving performance of a graph?

0 Answers  


What is the difference between reformat and redefine format?

4 Answers   IBM, TCS,


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

2 Answers   IBM, TCL,


what is the difference between the .dbc and .cfg extensions and give any clear information ?

4 Answers   Cognizant,


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

0 Answers  


Mention what is the syntax for m_dump in abinitio?

0 Answers  


What are the key elements of a data processing system?

0 Answers  


Categories