Pentaho Load Plain Text File w/ ASCII separator











up vote
0
down vote

favorite












I'm trying to use Spoon / Kettle to upload a plain text file that is separated by ASCII characters. I can see all the data when I preview the content of the file in Kettle, but no records load when I try to preview rows on the "Content" tab.



According to my research, Kettle should understand my field separator when typed as "$[value]" which in my case is "$[01]". Here's a description of the file structure:



Each file in the feed is in plain text format, separated into columns and rows. Each record has the same set of fields. The following are the delimiters for
each field and record:



Field Separator (FS): SOH (ASCII character 1)



Record Separator (RS) : STX (ASCII character 2) + “n”



Any record starting with a “#” and ending with the RS should be treated as a comment by the ingester and ignored. The data provider has also generated a column header line at the beginning of the file, listing field data types.



So my input parameters are:



Filetype: Fixed



Separator: $[01]



Enclosure:



Escape:



...



Format: DOS



Encoding: US-ASCII



Length: Characters



I'm unable to read any records, and I'm not sure if this is the correct approach. Would ingesting this data with java inside of kettle be a better method?



Any help with this would be much appreciated. Thanks!










share|improve this question


















  • 1




    Could you please provide sample Data for the same?
    – KP M
    Nov 8 at 10:18










  • Depending on your O.S, windows or linux, there are different control characters to be monitored. if you want your separator to be the literal $[01], what you need to type is $[01] ... being the escape character.
    – Cristian Curti
    Nov 13 at 19:40















up vote
0
down vote

favorite












I'm trying to use Spoon / Kettle to upload a plain text file that is separated by ASCII characters. I can see all the data when I preview the content of the file in Kettle, but no records load when I try to preview rows on the "Content" tab.



According to my research, Kettle should understand my field separator when typed as "$[value]" which in my case is "$[01]". Here's a description of the file structure:



Each file in the feed is in plain text format, separated into columns and rows. Each record has the same set of fields. The following are the delimiters for
each field and record:



Field Separator (FS): SOH (ASCII character 1)



Record Separator (RS) : STX (ASCII character 2) + “n”



Any record starting with a “#” and ending with the RS should be treated as a comment by the ingester and ignored. The data provider has also generated a column header line at the beginning of the file, listing field data types.



So my input parameters are:



Filetype: Fixed



Separator: $[01]



Enclosure:



Escape:



...



Format: DOS



Encoding: US-ASCII



Length: Characters



I'm unable to read any records, and I'm not sure if this is the correct approach. Would ingesting this data with java inside of kettle be a better method?



Any help with this would be much appreciated. Thanks!










share|improve this question


















  • 1




    Could you please provide sample Data for the same?
    – KP M
    Nov 8 at 10:18










  • Depending on your O.S, windows or linux, there are different control characters to be monitored. if you want your separator to be the literal $[01], what you need to type is $[01] ... being the escape character.
    – Cristian Curti
    Nov 13 at 19:40













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to use Spoon / Kettle to upload a plain text file that is separated by ASCII characters. I can see all the data when I preview the content of the file in Kettle, but no records load when I try to preview rows on the "Content" tab.



According to my research, Kettle should understand my field separator when typed as "$[value]" which in my case is "$[01]". Here's a description of the file structure:



Each file in the feed is in plain text format, separated into columns and rows. Each record has the same set of fields. The following are the delimiters for
each field and record:



Field Separator (FS): SOH (ASCII character 1)



Record Separator (RS) : STX (ASCII character 2) + “n”



Any record starting with a “#” and ending with the RS should be treated as a comment by the ingester and ignored. The data provider has also generated a column header line at the beginning of the file, listing field data types.



So my input parameters are:



Filetype: Fixed



Separator: $[01]



Enclosure:



Escape:



...



Format: DOS



Encoding: US-ASCII



Length: Characters



I'm unable to read any records, and I'm not sure if this is the correct approach. Would ingesting this data with java inside of kettle be a better method?



Any help with this would be much appreciated. Thanks!










share|improve this question













I'm trying to use Spoon / Kettle to upload a plain text file that is separated by ASCII characters. I can see all the data when I preview the content of the file in Kettle, but no records load when I try to preview rows on the "Content" tab.



According to my research, Kettle should understand my field separator when typed as "$[value]" which in my case is "$[01]". Here's a description of the file structure:



Each file in the feed is in plain text format, separated into columns and rows. Each record has the same set of fields. The following are the delimiters for
each field and record:



Field Separator (FS): SOH (ASCII character 1)



Record Separator (RS) : STX (ASCII character 2) + “n”



Any record starting with a “#” and ending with the RS should be treated as a comment by the ingester and ignored. The data provider has also generated a column header line at the beginning of the file, listing field data types.



So my input parameters are:



Filetype: Fixed



Separator: $[01]



Enclosure:



Escape:



...



Format: DOS



Encoding: US-ASCII



Length: Characters



I'm unable to read any records, and I'm not sure if this is the correct approach. Would ingesting this data with java inside of kettle be a better method?



Any help with this would be much appreciated. Thanks!







ascii pentaho etl pentaho-spoon pentaho-data-integration






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 7 at 22:43









Grant Bender

11




11








  • 1




    Could you please provide sample Data for the same?
    – KP M
    Nov 8 at 10:18










  • Depending on your O.S, windows or linux, there are different control characters to be monitored. if you want your separator to be the literal $[01], what you need to type is $[01] ... being the escape character.
    – Cristian Curti
    Nov 13 at 19:40














  • 1




    Could you please provide sample Data for the same?
    – KP M
    Nov 8 at 10:18










  • Depending on your O.S, windows or linux, there are different control characters to be monitored. if you want your separator to be the literal $[01], what you need to type is $[01] ... being the escape character.
    – Cristian Curti
    Nov 13 at 19:40








1




1




Could you please provide sample Data for the same?
– KP M
Nov 8 at 10:18




Could you please provide sample Data for the same?
– KP M
Nov 8 at 10:18












Depending on your O.S, windows or linux, there are different control characters to be monitored. if you want your separator to be the literal $[01], what you need to type is $[01] ... being the escape character.
– Cristian Curti
Nov 13 at 19:40




Depending on your O.S, windows or linux, there are different control characters to be monitored. if you want your separator to be the literal $[01], what you need to type is $[01] ... being the escape character.
– Cristian Curti
Nov 13 at 19:40

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53199030%2fpentaho-load-plain-text-file-w-ascii-separator%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53199030%2fpentaho-load-plain-text-file-w-ascii-separator%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Academy of Television Arts & Sciences

L'Équipe

1995 France bombings