Hi All,
I created a small txt file with 2 fields and i created a schema file for this metadata .
And i want to read the txt file using schema file with out importing meta data.
Here is the Schema file that i created:
record
(Col1:nullable string[5];
Clo2:nullable string[5];
)
When i use this schema i get the following warning:
Field "Col1" lacks whitespace delimiter, at offset: 5 [impexp/group_comp.C:6142]
So i modified the schema with this:
record
(Col1:nullable string[5]{delim='ws', quote=double};
Clo2:nullable string[5]{delim='ws', quote=double};
)
And now i'm getting this error now:
Input buffer overrun at field "Clo2", at offset: 7 [impexp/group_comp.C:5548]
I do searched in the forum abt second error,But here i'm able to read the file when i use the meta data instead of schema of file.
Am i missing something in this schema file..
Appreciate your comments ..
Schema file error
Moderators: chulett, rschirm, roy
Just for grins, try it this way:
I don't know how finicky Parallel is on format of the file. I am assuming that the database defaults field definitions to nullable (if that's not the case then add it back in, though I suggest putting a space between the colon and the word 'nullable'.
Also, is this an NLS system? If so, you have to make sure the file is in UTF-8 format.
Hope that helps!
Code: Select all
record
(
Col1:string[5] { delim='ws', quote=double };
Clo2:string[5] { delim='ws', quote=double };
)
Also, is this an NLS system? If so, you have to make sure the file is in UTF-8 format.
Hope that helps!
Bestest!
John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services
"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services
"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Try importing the table defintion from the file. Having done that, open the table definition in your Repository, visit the Format tab and click the button caption Sync Parallel. Then visit the Layout tab and choose Parallel option to see a record schema that will work. Use that in your schema file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
RCP and the use of a schema file are completely independent of each other.
RCP allows the passthrough of any input column named on the output link without needing to define a derivation for it. I prefer not to use it, because it thwarts effective lineage analysis.
The Schema File property allows the column definitions to be obtained from an external schema file rather than from the Columns and Format tabs.
RCP allows the passthrough of any input column named on the output link without needing to define a derivation for it. I prefer not to use it, because it thwarts effective lineage analysis.
The Schema File property allows the column definitions to be obtained from an external schema file rather than from the Columns and Format tabs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.