What is differnce between Error code and Error Level in Bteq
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
what are the uses of fact table and dimension table in banking project?
What is the Maximum number of volatile tables that can be created?
What are the differences between TerdataV2R5 and V12 Versions please??
i have a table like sales....the field are Prodid Jan(jam month sales)Feb March apr may jun july 1 20 76 50 74 94 93 83 2 30 94 40 94 93 93 02 3 40 90 30 49 94 92 56 4 70 20 30 93 46 35 78 5 23 40 40 39 84 46 57 6 85 30 55 93 46 46 46 7 84 20 65 83 56 57 57 8 10 93 40 93 68 57 36 9 57 30 30 83 67 57 79 10 38 83 40 83 55 68 47 11 35 39 90 94 57 78 47 12 83 89 50 93 79 69 69 i wat ti find the max sales of every product which i want to load into target table
What is the difference between global temporary tables and volatile temporary tables?
What are the various indexes in teradata? How to use them? Why are they preferred?
What is logical data model?
What is a sparse index?
How to write the query . eid enm doj dob i want to display the names who worked more than 25 years .
How would you load a very large file in teradata in general?
1.what is activity count? 2.what is skew factor? how it's working explain brefily
What is the primary index in teradata?