Hi all,
I am trying to write to a hash file from a sequential file.I have uploaded the text file to AIX and this file has 2 columns and 17 rows.First column is defined as key column ,it is an integer.Second column is char.
When i try to view data I am getting an error msg and then displaying data.If i run the job , it is aborting giving the following error message:
DDPR7300REPNAMELKP..DDPRMtrcReports.MtrcRepNames: read_delimited() - row 18, column (Second Column Name), required column missing
Plz let me know the reason
Thanks
problem with sequential file
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 143
- Joined: Thu Nov 04, 2004 6:53 am
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
You are reading records from a sequential file which has field delimiters. For the 18th row, you may have missed the delimiter and hence DataStage says that the second column is missing.
Please try to locate the delimiter in the 18th row. Also check whether you have your 'first line is column header' option ticked on as it may then represent a different line - probably 19th.
Please try to locate the delimiter in the 18th row. Also check whether you have your 'first line is column header' option ticked on as it may then represent a different line - probably 19th.
If you moved the file from DOS to Unix, then you may have a Control-Z character at the end of the file. If you did a binary FTP, then it preserved the DOS formatting.
Your choices are easy:
1. It's a small file, fix it using VI.
or
2. If not a onetime load but you will have to deal with it repeatedly, write a ksh script and use SED to strip offending characters
or
3. Setup the Sequential stage to ignore rows of incomplete data.
or
4. Create the file created in a manner that doesn't break your job.
Your choices are easy:
1. It's a small file, fix it using VI.
or
2. If not a onetime load but you will have to deal with it repeatedly, write a ksh script and use SED to strip offending characters
or
3. Setup the Sequential stage to ignore rows of incomplete data.
or
4. Create the file created in a manner that doesn't break your job.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
-
- Charter Member
- Posts: 143
- Joined: Thu Nov 04, 2004 6:53 am
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Premium Member
- Posts: 385
- Joined: Wed Jun 16, 2004 12:43 pm
- Location: Virginia, USA
- Contact:
Use your unix od -xc command to see what is actually at the end of the file.
However, here is your work around. On the columns tab of the sequential stage, scroll to the right. Change the value of Incomplete column from Error to Discard & Warn. You will have to do this for each column.
However, here is your work around. On the columns tab of the sequential stage, scroll to the right. Change the value of Incomplete column from Error to Discard & Warn. You will have to do this for each column.
Chuck Smith
www.anotheritco.com
www.anotheritco.com
-
- Charter Member
- Posts: 143
- Joined: Thu Nov 04, 2004 6:53 am