I'll give you a hint. Look up errorlevel in your bteq manual.
Attachments
Library
Quick Reference
Archives
Sample Index
2007 Indexes