Suppose i have data like
2009/12/31
555555534
' '
Generally last 2 records are wrong format it is going to
error table but i don't want load error table if any wrong
format in Date column Pass "NULL" how can we do it fast load
Answers were Sorted based on User's Feedback
Answer / yuvaevergreen
In FLOAD, record command can be used to select records.
.RECORD 1 THRU 998;
In MLOAD, option in import command can be used to select records.
.IMPORT INFILE FILE1
FORMAT TEXT
FROM 1 THRU 998
LAYOUT FILEIN
APPLY INSERTS;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / yogi
If those invalid records are the same everytime, then NULLIF
option in DEFINE command can be used(below). But, this would
not work, if the invalid values are different every time.
.DEFINE EMPLOYEE_NAME(CHAR(10),NULLIF='555555534'),
EMPLOYEE_ADD(CHAR(10),NULLIF=' ')
FILE=inputfile;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / guest
INDICATORS is a keyword related to how FastLoad
handlesnulls in the input file. It identifies columns with
nulls and uses abitmap at the beginning of each row to show
which fields containa null instead of data. When the
INDICATORS option is on,FastLoad looks at each bit to
identify the null column. TheINDICATORS option does not
work with VARTEXT
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / tdguy
IF it is always the last two records, then use RECORD
option. Assuming 1000 records are present, use the below
option to avoid the last two records
RECORD THRU 998;
| Is This Answer Correct ? | 2 Yes | 2 No |
What can be achieved by using the teradata rdbms?
In the Primary Index, what is the score of AMPs that are actively involved?
Please tell me a query to find the Primary key,Foreign key,primary Index,PPI for the Database?
Hi All, can anyone tell me how many types of Skew exists? whats the difference between amp skew,data skew,cpu skew, io skew, delta amp cpu ?
What are the joins in teradata?
What are aggregate tables? How do you design them using teradata?
What is the purpose of joins in teradata and what are the available join types?
can we join volatile table with general table an global temporary table with general table ?
How do you create tables? Exact syntax, and create profiles, users in teradata?
Explain teradata utilities?
What is a common data source for the central enterprise data warehouse?
what is identity columns in teradata