Fastload exit code verification

Tools
Enthusiast

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 (1)
2 REPLIES
Enthusiast

Re: Fastload exit code verification

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.

Enthusiast

Re: Fastload exit code verification

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