All Forums Tools
davidtzoor 5 posts Joined 06/14
23 Jun 2014
Fastload exit code verification

Hello there,
I'm running a fastload job and at the end of the job before logging off, I would like to check if the fastload excuted correctly. 
Is there a way to check the return code or error code of the fast load? 
Thanks

Tags:
Raja_KT 1246 posts Joined 07/09
23 Jun 2014

Usually, it is checked in unix/linux at the end ..something like this sample after logging off:

CR=$?

 

if [ $CR -ne 0 ]

then

     echo " failed"

else

 

echo "Passed"

fi

 

Inside we can use .OS command to execute OS command. Also you can check notify.

 
 

Raja K Thaw
My wiki: http://en.wikipedia.org/wiki/User:Kt_raj1
Street Children suffer not by their fault. We can help them if we want.

M.Saeed Khurram 544 posts Joined 09/12
25 Jun 2014

yes you can do it using shell script. Put the following command in your shell script:

ERROR_HANDLER()

{

echo " "

echo "Error occured!!!"

echo "ERRORLEVEL"  $rc

exit 1

}
fastload < your_script_Name

rc=$?

if [ $rc -ne 0 ]

then

ERROR_HANDLER

fi

 

 

 

Khurram

You must sign in to leave a comment.