What is differnce between Error code and Error Level in Bteq

Answers were Sorted based on User's Feedback



What is differnce between Error code and Error Level in Bteq..

Answer / harsha

Error code is the code for the error for ex 3807 is the error code for the error "object does not exist"
To know the error codes type
select * from dbc.errormsgs
in the Queryman
Error level is the severity set for the corresponding error code
if error level is
0- Success
4- Warning
8- User Error
12- Fatal error
16- Typical Error

Is This Answer Correct ?    17 Yes 2 No

What is differnce between Error code and Error Level in Bteq..

Answer / yuvaevergreen

Error code or return code is a value returned by BTEQ at
the end of each query. Error level is a bteq command used
to assign severity to some error numbers.
.IF ERRORCODE > 0 THEN .GOTO ... is an example for error
code .SET ERRORLEVEL 3807 SEVERITY 0 is an example.

Is This Answer Correct ?    10 Yes 1 No

What is differnce between Error code and Error Level in Bteq..

Answer / raos

Error code returns zero if the previous sql statement is success.t returns non zero value if the previous sql statement is failed.

Is This Answer Correct ?    9 Yes 1 No

What is differnce between Error code and Error Level in Bteq..

Answer / vinay sir(datawarehousing tech

One small correction to the above answer.

Errorcode: The code returned by the previous sql statement
which resembles the error message information(we can see in
DBC.ErrorMsgs table).

Return Code: The code return by the script after execution.
These return codes can be 0,2,4,8,12,16.

Note: Error code and Return code are different.

Errorlevel:The severity set to the errorcode at the
time of errorhandling.

Is This Answer Correct ?    7 Yes 0 No

What is differnce between Error code and Error Level in Bteq..

Answer / tdguy

Errorcode is used in bteq conditional logic. It holds the
return code of every sql in bteq. 0 indicates perfect
excution of the sql.

Errorlevel assigns severity to error numbers.

Is This Answer Correct ?    3 Yes 0 No

What is differnce between Error code and Error Level in Bteq..

Answer / uli

in addiion to the above
Error-Coce is set with each SQL-statement
Error-level is kept for the whole Session
So, it makes a difference in conditinals
.if ERRORCODE -- question about the last statement
.if ERRORLEVEL -- question about the highest level reached

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Teradata Interview Questions

What is the purpose of joins in teradata and what are the available join types?

0 Answers  


What is meant by a Highest Cost Plan?

0 Answers  


Explain teradata utilities. What is multiload, fast load, tpump?

0 Answers  


What is the use of upsert command in teradata?

1 Answers  


How can you track login parameters of users in teradata?

0 Answers  






Find 2 highest sal from each dept who have completed 5 year in org

0 Answers   Wipro,


Can we collect statistics on multiple columns?

0 Answers  


How many types of joins are there in teradata?

0 Answers  


Why do you get spool space errors? How do trouble-shoot them?

0 Answers  


Steps to create a data model?

0 Answers  


I WANT TO LEARN TERA-DATA ,SO CAN ANY BODY PLZ REFER WHAT ARE THE TOPICS I HAVE TO GO THROUGH, TO GET ASAP JOB ,SO PLZ REFER ME WHERE I CAN GET NICE COACHING ON TERADATA.

13 Answers  


How teradata makes sure that there are no duplicate rows being inserted when its a set table?

0 Answers  


Categories