Hi Santhosh,
This may work for you. I would only recommend this if the output of the SQL is a small amount of data.
The idea is to put it in an ESP variable using the ESPLMI command to send it back to the manager.
The script would look like the one below.
#!/bin/ksh
SQL HERE and store output in $VARIABLE_HERE
/opt/agents/agentu_01/Esplmi -smainframehere:8988 -uuserhere -ppasswordhere "-cVSET ABCDF $VARIABLE_HERE TABLE(DPVARS)"
echo 'returncode' $?
Then the next jobs could get the variable using a VGET command like the one below
VGET (ABCDF) TABLE(DPVARS) CLANG
2¢