0 - 2 of 2 tags for bteq error code

I am executing bteqs from command prompt.
I am calling a file at the start which contains credentials (by using .RUN FILE command in the bteq).
So whenever I am running the bteqs, its throwing  " *** Warning: EOF on INPUT stream. " warning.
But the control is not coming out of bteq as its still running.
My concerns are,

Hi ,

I have BTEQ with error handling in it which works fine in unix. I have used

.QUIT ERRORCODE for when BTEQ fails,However I do not get this errorcode in my unix shell script form which I call BTEQ.

How do I capture this errorcode/return code